diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-05-29 07:58:36 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-07-19 12:57:47 +0200 |
commit | ea9ef6c2e001c5dc94bee35ebd1c8a98621cf7b8 (patch) | |
tree | f50709feec7fbe95ab14e7f38834dc33d287a8d1 /net/mac802154/scan.c | |
parent | fae4280ece942b7c02be6d9bcce2873cdea32fe7 (diff) | |
download | linux-stable-ea9ef6c2e001c5dc94bee35ebd1c8a98621cf7b8.tar.gz linux-stable-ea9ef6c2e001c5dc94bee35ebd1c8a98621cf7b8.tar.bz2 linux-stable-ea9ef6c2e001c5dc94bee35ebd1c8a98621cf7b8.zip |
media: dvb-usb: m920x: Fix a potential memory leak in m920x_i2c_xfer()
'read' is freed when it is known to be NULL, but not when a read error
occurs.
Revert the logic to avoid a small leak, should a m920x_read() call fail.
Fixes: a2ab06d7c4d6 ("media: m920x: don't use stack on USB reads")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'net/mac802154/scan.c')
0 files changed, 0 insertions, 0 deletions