mfd: Do not dereference null pointer in twl4030 error path
authorIlkka Koskinen <ilkka.koskinen@nokia.com>
Tue, 20 Oct 2009 13:22:52 +0000 (16:22 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Oct 2009 23:20:33 +0000 (00:20 +0100)
commita8643430bc82aa3d272b21df2e1feb502bb8aacb
tree5d36ab9a0b1b84414cd3e9327be319e493acebec
parent14f572fa38c55fbe369127b808a4a79b0bbec367
mfd: Do not dereference null pointer in twl4030 error path

We are mistakenly dereferencing twl->client in the twl->client null checking
path.

Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-core.c