Skip to content

Commit

Permalink
amvecm: incorrect free pointer event
Browse files Browse the repository at this point in the history
PD#150076: incorrect free pointer event

driver defect clean up:
#4
torvalds#7

Change-Id: Iec9d38a5fd71d26c36115eefe98326b909f85527
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
  • Loading branch information
wenfeng.guo authored and akiernan committed Nov 3, 2022
1 parent 8509f8b commit 606af33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/amlogic/media/enhancement/amvecm/amvecm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3115,7 +3115,6 @@ static int aml_vecm_probe(struct platform_device *pdev)
cdev_del(&devp->cdev);
fail_add_cdev:
pr_info("[amvecm.] : amvecm add device error.\n");
kfree(devp);
fail_class_create_file:
pr_info("[amvecm.] : amvecm class create file error.\n");
for (i = 0; amvecm_class_attrs[i].attr.name; i++) {
Expand All @@ -3140,7 +3139,6 @@ static int __exit aml_vecm_remove(struct platform_device *pdev)
cdev_del(&devp->cdev);
class_destroy(devp->clsp);
unregister_chrdev_region(devp->devno, 1);
kfree(devp);
#ifdef CONFIG_AMLOGIC_LCD
aml_lcd_notifier_unregister(&aml_lcd_gamma_nb);
#endif
Expand Down

0 comments on commit 606af33

Please sign in to comment.