Skip to content
Commit 99b28f1b authored by Phil Carmody's avatar Phil Carmody Committed by Greg Kroah-Hartman
Browse files

driver core: Prevent reference to freed memory on error path



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: default avatarPhil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e6309e75
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment