IIO: Documentation: generic_buffer example: Avoid NULL pointer dereference
authorMichael Hennerich <michael.hennerich@analog.com>
Thu, 24 Feb 2011 15:34:50 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Feb 2011 22:40:22 +0000 (14:40 -0800)
commit065896e904eac598bafd5e607b944da34c4aaf09
tree1bf9e3d502a84c8219335f1ed2aae79a9216f6da
parent7c31b984c4d119d0e32a1696fd4ca6b506a73d10
IIO: Documentation: generic_buffer example: Avoid NULL pointer dereference

In case optarg n is not given return/exit

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Documentation/generic_buffer.c