Thread (6 messages) 6 messages, 3 authors, 2013-03-27

Re: [PATCH] yam: avoid null pointer dereference error

From: David Miller <davem@davemloft.net>
Date: 2013-03-27 17:46:55
Also in: linux-hams

From: Ben Hutchings <redacted>
Date: Wed, 27 Mar 2013 17:44:17 +0000
On Wed, 2013-03-27 at 11:19 +0000, Colin King wrote:
quoted
From: Colin Ian King <redacted>

yam_open checks if dev is null, however, before that check it
accesses some of the fields from dev in a proceeding printk which
will cause a null pointer dereference error if dev is nul. Move
the printk to after the null check.
This function will never be called with dev == NULL.
Then let's remove at least that part of the check.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help