[PATCHv3] staging: Check for Null allocated skb in fw_download_code

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Aug 12 17:11:46 EDT 2014


On Tue, 12 Aug 2014 20:46:56 -0000, Jeff Haran said:
> While the avoidance of dereferencing NULL pointers in the kernel is a
> laudable goal, what will be the effect of the call to write_nic_byte() at the
> end of the function not happening should the call to dev_alloc_skb() return
> NULL?

Damn. I missed that one, good catch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140812/8bb2d393/attachment.bin 


More information about the Kernelnewbies mailing list