Commit 4a85679
committed
iio: adc: adrv902x: Fix memory leak (AGC settings)
Fix memory leak for phy->agcConfig by using devm_kzalloc for
allocating memory instead of kzalloc.
Fixes: 43f0025 ("drivers: iio: adc: madura: adrv9025.c: AGC settings")
Signed-off-by: George Mois <george.mois@analog.com>1 parent 53f251a commit 4a85679
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3293 | 3293 | | |
3294 | 3294 | | |
3295 | 3295 | | |
3296 | | - | |
| 3296 | + | |
3297 | 3297 | | |
3298 | 3298 | | |
3299 | 3299 | | |
| |||
0 commit comments