[openib-general] [Fwd: [PATCH] RDMA/iwcm: Fix memory leak]

Roland Dreier rdreier at cisco.com
Thu Nov 9 14:59:00 PST 2006


 > > 	if (iw_event->private_data_len)
 > > 		kfree(iw_event->private_data);
 > 
 > Kfree checks for a null value, so is the private_data_len check necessary?

Could private_data be a junk pointer if private_data_len == 0 ?

 - R.




More information about the general mailing list