mfd: Fix twl-core oops while calling twl_i2c_* for unbound driver
authorIlya Yanok <yanok@emcraft.com>
Mon, 1 Aug 2011 21:00:28 +0000 (23:00 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Dec 2011 17:53:25 +0000 (18:53 +0100)
Check inuse variable before trying to access twl_map to prevent
dereferencing of uninitialized variable.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Cc: stable@kernel.org
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

No differences found