summaryrefslogtreecommitdiff
path: root/drivers/message
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-07-27 06:17:43 +0300
committerJonathan Cameron <jic23@kernel.org>2016-08-15 19:05:30 +0300
commitddbc719f99cf9aed6918cef98cb3475fd4fc4fa6 (patch)
tree70a3b81e810ada06a5426e0d3e8a17918b28c255 /drivers/message
parent0d9dcf852334b796bacc7020364afba3122db81e (diff)
downloadlinux-ddbc719f99cf9aed6918cef98cb3475fd4fc4fa6.tar.xz
tools: iio: iio_generic_buffer: initialize channel array pointer
Uninitialized channel pointer causes segmentation fault when we call free(channel) during cleanup() with no channels initialized. This happens when you exit early for usage errors. Initialize the pointer to NULL when it is declared. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Cc: Daniel Baluta <daniel.baluta@gmail.com> Tested-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions