]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b3f6aa5720e66d617ad888df03ba1bf66dafb75
tree7a7539d52980c150544133c0ee85abf4590bbca5
parent94944c743ce5759d59482900a6e6c2c761385e35
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: Ilya Yanok <yanok@emcraft.com>
Cc: stable@kernel.org
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c