diff options
| author | Ritesh Harjani <[email protected]> | 2019-02-22 13:51:34 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2019-02-27 09:00:17 +0000 |
| commit | e5723f95d6b493dd437f1199cacb41459713b32f (patch) | |
| tree | 9d156ff32fb2359b9e4f1449ea7fe8e75c813769 /drivers/mmc/core/queue.c | |
| parent | mmc: tmio: fix access width of Block Count Register (diff) | |
| download | kernel-e5723f95d6b493dd437f1199cacb41459713b32f.tar.gz kernel-e5723f95d6b493dd437f1199cacb41459713b32f.zip | |
mmc: core: Fix NULL ptr crash from mmc_should_fail_request
In case of CQHCI, mrq->cmd may be NULL for data requests (non DCMD).
In such case mmc_should_fail_request is directly dereferencing
mrq->cmd while cmd is NULL.
Fix this by checking for mrq->cmd pointer.
Fixes: 72a5af554df8 ("mmc: core: Add support for handling CQE requests")
Signed-off-by: Ritesh Harjani <[email protected]>
Cc: [email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/mmc/core/queue.c')
0 files changed, 0 insertions, 0 deletions
