]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: card: fix potential null dereference of 'idata'
authorVladimir Motyka <vladimir.motyka@gmail.com>
Wed, 11 May 2011 04:00:43 +0000 (00:00 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:49 +0000 (23:53 -0400)
commite5504073368f8ada39dcfdc199091adf88fabd46
tree43ed3d608705c5a7fb5dbdbb8d75efa120f114ba
parent256b77175b35b3defc8a799c616563b1b6d92fa2
mmc: card: fix potential null dereference of 'idata'

When allocation of idata failed there was a null dereference. Also avoid
calling kfree where it isn't needed.

Signed-off-by: Vladimir Motyka <vladimir.motyka@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c