FMC: NULL dereference on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2013 16:01:01 +0000 (19:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2013 03:30:31 +0000 (20:30 -0700)
commite42d50baf43120a78985f13f6e9c8f92fae091c2
treee9f91f6a06afe1696be14092344cdececfe82e99
parente3a3c3a205554e564751cd9c0276b2af813d7a92
FMC: NULL dereference on allocation failure

If we don't allocate "arr" then the cleanup path will dereference it and
oops.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fmc/fmc-sdb.c