Home
last modified time | relevance | path

Searched hist:"9 e2a0c96" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/mmc/host/
H A Dtoshsd.c9e2a0c96 Sat Nov 15 12:56:41 CST 2014 Dan Carpenter <dan.carpenter@oracle.com> mmc: toshsd: move dereference below check for NULL

We check for NULL pointers after dereferencing so it's too late. Oddly
enough, Smatch misses this code but complains about the caller passing
NULL pointers to this function:

drivers/mmc/host/toshsd.c:389 toshsd_irq()
error: we previously assumed 'host->cmd' could be null (see line 349)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
9e2a0c96 Sat Nov 15 12:56:41 CST 2014 Dan Carpenter <dan.carpenter@oracle.com> mmc: toshsd: move dereference below check for NULL

We check for NULL pointers after dereferencing so it's too late. Oddly
enough, Smatch misses this code but complains about the caller passing
NULL pointers to this function:

drivers/mmc/host/toshsd.c:389 toshsd_irq()
error: we previously assumed 'host->cmd' could be null (see line 349)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>