edac_mc: check for allocation failure in edac_mc_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 May 2012 12:51:02 +0000 (15:51 +0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Jun 2012 16:23:51 +0000 (13:23 -0300)
commit08a4a136909602eae0e71e147153461df077a46f
treeba8ec894512dd769b3cac5bcd4cfc4e4362124f5
parent5156a5f4e058b906c1e8c0fe2ab16f30b60dee96
edac_mc: check for allocation failure in edac_mc_alloc()

Add a check here for if kzalloc() failed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/edac_mc.c