mmc: card: Fix NULL pointer dereference in mmc_blk_ioctl_rpmb_cmd()
In mmc_blk_ioctl_rpmb_cmd(), if user data copy fails, the card variable is dereferenced without NULL pointer check. Adding NULL pointer check in this condition. Change-Id: If3fd2175946cccaf838768d45de72bc2f5c32f6b Signed-off-by:Siba Prasad <sibap@codeaurora.org> Signed-off-by:
Pradeep P V K <ppvk@codeaurora.org>
Loading
Please register or sign in to comment