Re: [PATCH 1/2] mmc: Avoid null pointer dereference

From: Namjae Jeon
Date: Wed Apr 11 2012 - 21:45:56 EST


2012/4/12 Philippe De Swert <philippedeswert@xxxxxxxxx>:
> After the null check on md the code jumped to cmd_done, which then
> will dereference md in mmc_blk_put. This patch avoids the possible
> null pointer dereference in that case.
>
> Signed-off-by: Philippe De Swert <philippedeswert@xxxxxxxxx>
This patch is good also.
Reviewed-by: Namjae Jeon <linkinjeon@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/