fixed kernel driver memory management bug