summaryrefslogtreecommitdiff
path: root/kernel/rtmutex_common.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-12-24 06:24:00 +0000
committerJonathan Cameron <jic23@kernel.org>2012-12-27 11:11:27 +0000
commit678fb42e2b2c815c3475884017aac4da22124d0d (patch)
tree388971fa73ac2dd804be94370d1a53b52fa5d23e /kernel/rtmutex_common.h
parent13e57ee2056221296f1926d49d00edd224058bea (diff)
iio: (max1363) Fix probe error pathiio-fixes-for-3.8a
Instantiating the driver with no available regulator results in: [39711.686393] i2c i2c-7: new_device: Instantiated device max1139 at 0x35 [39711.688687] BUG: unable to handle kernel paging request at fffffffffffffe13 [39711.688734] IP: [<ffffffff813e835b>] regulator_disable+0x1b/0x80 [39711.688788] PGD 1c0e067 PUD 1c0f067 PMD 0 [39711.688835] Oops: 0000 [#1] SMP Caused by bad probe error path. Fix it. Driver should also not attempt to free the interrupt in its error path if none was allocated. Fix that problem as well. Finally, testing if the regulator was allocated is not necessary in the remove function, since the probe function bails out if this is the case. Remove that check. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'kernel/rtmutex_common.h')
0 files changed, 0 insertions, 0 deletions