Commit 5518e7a8 authored by Ilya Yanok's avatar Ilya Yanok Committed by Greg Kroah-Hartman
Browse files

mfd: Fix twl-core oops while calling twl_i2c_* for unbound driver



commit 8653be1a upstream.

Check inuse variable before trying to access twl_map to prevent
dereferencing of uninitialized variable.

Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 61bf2d48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment