mmc: atmel-mci: fix oops in atmci_tasklet_func
authorRodolfo Giometti <giometti@enneenne.com>
Mon, 9 Sep 2013 15:31:59 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:56:40 +0000 (10:56 -0800)
commit63a23e393fed93ca823f7c7fc415795e2ffe7670
tree368105e925d617d4a7820925cc454b5c55253f88
parent6edfd0331f788a5d62736c6a422488708175b4c4
mmc: atmel-mci: fix oops in atmci_tasklet_func

commit fbd986cd420d1deeabf1039ec4e74075a5639db5 upstream.

In some cases, a NULL pointer dereference happens because data is NULL when
STATE_END_REQUEST case is reached in atmci_tasklet_func.

Signed-off-by: Rodolfo Giometti <giometti@enneenne.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/atmel-mci.c