diff options
| -rw-r--r-- | drivers/iio/industrialio-buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index b976332d45d3..90462fcf5436 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c | |||
| @@ -653,6 +653,7 @@ static int iio_verify_update(struct iio_dev *indio_dev, | |||
| 653 | unsigned int modes; | 653 | unsigned int modes; |
| 654 | 654 | ||
| 655 | memset(config, 0, sizeof(*config)); | 655 | memset(config, 0, sizeof(*config)); |
| 656 | config->watermark = ~0; | ||
| 656 | 657 | ||
| 657 | /* | 658 | /* |
| 658 | * If there is just one buffer and we are removing it there is nothing | 659 | * If there is just one buffer and we are removing it there is nothing |
