Re: [bug report] mmc: sdhci-pxav2: add SDIO card IRQ workaround for PXA168 V1 controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dan,

On 7/13/2024 5:53 PM, Dan Carpenter wrote:

     129         if (mrq->cmd && !mrq->cmd->error &&
                     ^^^^^^^^
If mrq->cmd is NULL

--> 154         mmc_request_done(host->mmc, mrq);
                                             ^^^
Then we are toasted because it will crash here

     155 }

Ah, you're right. I was trying to be safe about never accessing null
pointers when I wrote the code, but since mmc_request_done also assumes
mrq->cmd is not null, it's pointless to check that here. I guess we must
already be guaranteed that it's never null at that point. Otherwise, all
sdhci drivers would crash.

Thanks for the heads up. I will submit a patch that removes the check
against mrq->cmd on line 129.

Doug




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux