public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* BUG null dereference in driver ./drivers/net/hamradio/yam.c
@ 2009-12-21 20:13 Alexander Strakh
  0 siblings, 0 replies; only message in thread
From: Alexander Strakh @ 2009-12-21 20:13 UTC (permalink / raw)
  To: Frederic Rible, Thomas Sailer, Jean-Paul Roubelat, linux-hams,
	linux-kernel

        KERNEL_VERSION: 2.6.32
        SUBJECT: null derefernce in function __init yam_init_driver
        SUBSCRIBE:
        In driver drivers/net/hamradio/yam.c in function __init 
yam_init_driver:

1. If in line 1153 dev = NULL then we goto line 1154
2. In line 1155 we have null dereference of "dev->name"

1153                 if (!dev) {
1154                         printk(KERN_ERR "yam: cannot allocate net device 
%s\n",
1155                                dev->name);
1156                         err = -ENOMEM;
1157                         goto error;
1158                 }

Found by Linux Device Drivers Verification Project (Svace Detector)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-21 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 20:13 BUG null dereference in driver ./drivers/net/hamradio/yam.c Alexander Strakh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox