commit | 4cd140bda6494543f1c1b0ccceceaa44b676eef6 | [log] [tgz] |
---|---|---|
author | Stefan Windfeldt-Prytz <stefan.windfeldt@axis.com> | Thu Feb 15 15:02:53 2018 +0100 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sat Feb 17 16:54:58 2018 +0000 |
tree | 4b97fb5a8a0ba74b829bfcab703716d1ad07868e | |
parent | f027e0b3a774e10302207e91d304bbf99e3a8b36 [diff] |
iio: buffer: check if a buffer has been set up when poll is called 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: stable@vger.kernel.org Signed-off-by: Stefan Windfeldt-Prytz <stefan.windfeldt@axis.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>