staging: mt29f: fix unchecked malloc()
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>
Tue, 29 Dec 2015 11:32:20 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 04:11:51 +0000 (20:11 -0800)
commite5b3ecebdf153509118ab1de6b3707a9889c300d
tree41e1a724212774e3f9eb2ee0fc0e655c91fcadbd
parentc5af6be354e3e4c10fc54d48f5a4fb6744ea293a
staging: mt29f: fix unchecked malloc()

The pointer is unconditionally dereferenced a few lines later, we need to make
sure it isn't NULL.

Signed-off-by: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt29f_spinand/mt29f_spinand.c