diff options
| author | Lars-Peter Clausen <[email protected]> | 2016-07-11 13:54:17 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-08-15 15:39:14 +0100 |
| commit | 7d3cc21dab5313a02f2f3ca8164529b828a030d1 (patch) | |
| tree | c3523231990fc12c9bd2879febf1e67661a7bd30 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | b2f0c09664b72b2f8c581383a9337ac3092e42c8 (diff) | |
iio: ad799x: Fix buffered capture for ad7991/ad7995/ad7999
The data buffer for captured mode for the ad799x driver is allocated in the
update_scan_mode() callback. This callback is not set in the iio_info
struct for the ad7791/ad7995/ad7999, which means that the data buffer is
not allocated when a captured transfer is started. As a result the driver
crashes when the first sample is received. To fix this properly set the
update_scan_mode() callback.
Fixes: d8dca33027c1 ("staging:iio:ad799x: Preallocate sample buffer")
Signed-off-by: Lars-Peter Clausen <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions