Bug 4942 - iio: adc: palmas_gpadc: fix NULL dereference on rmmod
Summary: iio: adc: palmas_gpadc: fix NULL dereference on rmmod
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 5.10.y-15
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 20:12 UTC by inspursand
Modified: 2023-08-17 17:06 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description inspursand inspur_group 2023-05-12 20:12:37 UTC
Description of problem:
Calling dev_to_iio_dev() on a platform device pointer is undefined and
will make adc NULL.

Version-Release number of selected component (if applicable):
5.10

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2023-05-13 10:23:43 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1623
Comment 2 GuixinLiu alibaba_cloud_group 2023-08-17 17:06:56 UTC
already fixed