summaryrefslogtreecommitdiff
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorRitesh Harjani <riteshh@codeaurora.org>2019-02-22 19:21:34 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-05 17:58:53 +0100
commit17bf961224725e9d22936418583976b88538489b (patch)
treed1183d3eeb06ccf4978b7418d23d116c6ab7736e /kernel/livepatch
parent85d9ad404676f2689e0c980f686cef9ca0a0aa63 (diff)
mmc: core: Fix NULL ptr crash from mmc_should_fail_request
commit e5723f95d6b493dd437f1199cacb41459713b32f upstream. 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 <riteshh@codeaurora.org> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/livepatch')
0 files changed, 0 insertions, 0 deletions