mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
[media] marvell-ccic: drop free_irq for devm_request_irq allocated irq
irq allocated with devm_request_irq should not be freed using free_irq, because doing so causes a dangling pointer, and a subsequent double free. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
6c7e346974
commit
23c4919c6f
@ -481,7 +481,6 @@ static int mmpcam_remove(struct mmp_camera *cam)
|
|||||||
struct mmp_camera_platform_data *pdata;
|
struct mmp_camera_platform_data *pdata;
|
||||||
|
|
||||||
mmpcam_remove_device(cam);
|
mmpcam_remove_device(cam);
|
||||||
free_irq(cam->irq, mcam);
|
|
||||||
mccic_shutdown(mcam);
|
mccic_shutdown(mcam);
|
||||||
mmpcam_power_down(mcam);
|
mmpcam_power_down(mcam);
|
||||||
pdata = cam->pdev->dev.platform_data;
|
pdata = cam->pdev->dev.platform_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user