From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Tue, 12 Aug 2014 17:11:46 -0400 Subject: [PATCHv3] staging: Check for Null allocated skb in fw_download_code In-Reply-To: Your message of "Tue, 12 Aug 2014 20:46:56 -0000." <4E5779AD88B2F040B8A7E83ECF544D1A53A764@SJCPEX01CL02.citrite.net> References: <1407874707-21328-1-git-send-email-xerofoify@gmail.com> <4E5779AD88B2F040B8A7E83ECF544D1A53A764@SJCPEX01CL02.citrite.net> Message-ID: <19423.1407877906@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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