Staging: Beceem: use after free in bcm_exit()
authorDan Carpenter <error27@gmail.com>
Mon, 6 Dec 2010 07:02:55 +0000 (10:02 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Dec 2010 00:09:45 +0000 (16:09 -0800)
commit6b74705e15d5c87181008f1ac984df7faaad55c9
tree33cc1f638feaf9983a56a9ce77a3b25cfa036e8b
parentcd0b0ebfbe134b9c98fa8e628732b0e41b2cb48c
Staging: Beceem: use after free in bcm_exit()

We can't call class_destroy() until after the driver has been deregistered.
It leads to a NULL deref on module unload.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/InterfaceInit.c