Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: buffer: check if a buffer has been set up when poll is called
[ Upstream commit 4cd140b ] If no iio buffer has been set up and poll is called return 0. Without this check there will be a null pointer dereference when calling poll on a iio driver without an iio buffer. Cc: [email protected] Signed-off-by: Stefan Windfeldt-Prytz <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information