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)
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

Simple merge