]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:max1363: Don't free uninitialized variable
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 11 Jul 2012 09:28:00 +0000 (10:28 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 12 Jul 2012 16:50:26 +0000 (17:50 +0100)
commit5d046c2b5ca675344a1bdb997c6bebd8fb48ca8b
tree2d5ca5fd4e00739415468763c2f11b702518b7ac
parentb2e7d6072b771a195e273d0a5e9ec884ac93d30b
staging:iio:max1363: Don't free uninitialized variable

It is possible that on one of the error paths we are going to try to free
'rxbuf', even though it has not been allocated yet, which cause the following
warning:
drivers/staging/iio/adc/max1363_ring.c: In function 'max1363_trigger_handler':
drivers/staging/iio/adc/max1363_ring.c:87:7: warning: 'rxbuf' may be used
uninitialized in this function

Reported-by: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/adc/max1363_ring.c