Skip to content
Commit ad320e40 authored by Henry Martin's avatar Henry Martin Committed by Damien Le Moal
Browse files

ata: pata_pxa: Fix potential NULL pointer dereference in pxa_ata_probe()



devm_ioremap() returns NULL on error. Currently, pxa_ata_probe() does
not check for this case, which can result in a NULL pointer dereference.

Add NULL check after devm_ioremap() to prevent this issue.

Fixes: 2dc6c6f1 ("[ARM] pata_pxa: DMA-capable PATA driver")
Signed-off-by: default avatarHenry Martin <bsdhenrymartin@gmail.com>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent 0af2f6be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment