Thread (1 message) 1 message, 1 author, 2014-08-12

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

From: Valdis.Kletnieks at vt.edu <hidden>
Date: 2014-08-12 21:11:46

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 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help