driver core: Prevent reference to freed memory on error path
authorPhil Carmody <ext-phil.2.carmody@nokia.com>
Mon, 14 Dec 2009 18:28:12 +0000 (20:28 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:23:44 +0000 (11:23 -0800)
priv is drv->p. So only free drv->p after we've finished using priv.

Found using a static code analysis tool

Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found