mmc: bcm2835: Fix possible NULL ptr dereference in bcm2835_request
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 25 Mar 2017 13:17:00 +0000 (13:17 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:53 +0000 (21:41 +0200)
commitbf3240bada0211b4a555d75f027181c8432b2d20
tree830e85cb32866e6278852d24b9d67b2f39df9abd
parentfeeef096a770d288c943c1759785bd9d4f9247b7
mmc: bcm2835: Fix possible NULL ptr dereference in bcm2835_request

This fixes a NULL pointer dereference in case of a MMC request with a
set block count command and no data.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c