diff options
| author | Darshana Padmadas <[email protected]> | 2015-03-28 06:37:14 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2015-03-28 13:51:40 +0000 |
| commit | 4ce7ca89d6e8eae9e201cd0e972ba323f33e2fb4 (patch) | |
| tree | 0694ddd5dc9185aa5300c7c1ad32d8a6a128725e /net/unix/af_unix.c | |
| parent | iio: adc: vf610: use ADC clock within specification (diff) | |
| download | kernel-4ce7ca89d6e8eae9e201cd0e972ba323f33e2fb4.tar.gz kernel-4ce7ca89d6e8eae9e201cd0e972ba323f33e2fb4.zip | |
iio: imu: Use iio_trigger_get for indio_dev->trig assignment
This patch uses iio_trigger_get to increment the reference
count of trigger device, to avoid incorrect assignment.
Can result in a null pointer dereference during removal if the
trigger has been changed before removal.
This patch refers to a similar situation encountered through the
following discussion:
http://www.spinics.net/lists/linux-iio/msg13669.html
Signed-off-by: Darshana Padmadas <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
