macintosh/windfarm_pm121.c: Fix for possible null pointer dereference
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 17 May 2014 17:20:57 +0000 (19:20 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 May 2014 00:56:00 +0000 (10:56 +1000)
commitbd0c30e310d43c49debe380e344307b677e182a6
tree72a0f45acd4f89842640fdc7eb32a838c8fb4123
parent1efc563865dbc3710c5af7bc1540360a6d06192c
macintosh/windfarm_pm121.c: Fix for possible null pointer dereference

There is otherwise a risk of a possible null pointer dereference.

Was largely found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/windfarm_pm121.c