Skip to content
Commit 8653be1a authored by Ilya Yanok's avatar Ilya Yanok Committed by Samuel Ortiz
Browse files

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



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

Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
Cc: stable@kernel.org
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 858a6303
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