linux/drivers/staging/media
Dan Carpenter 8e17858a88 staging: bcm2835-camera: fix error handling in init
The unwinding here isn't right.  We don't free gdev[0] and instead
free 1 step past what was allocated.  Also we can't allocate "dev" then
we should unwind instead of returning directly.

Fixes: 7b3ad5abf0 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: walter harms <wharms@bfs.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-06 09:17:02 +01:00
..
bcm2048 Staging: media: bcm2048: Fixed coding style issue. 2017-02-12 13:55:28 -08:00
cxd2099 staging: media: cxd2099: Format block comments. 2016-10-16 10:26:03 +02:00
davinci_vpfe staging/iio driver patches for 4.11-rc1 2017-02-22 12:14:01 -08:00
lirc sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
omap4iss [media] v4l: omap4iss: Clean up file handle in open() and release() 2017-01-31 11:50:06 -02:00
platform/bcm2835 staging: bcm2835-camera: fix error handling in init 2017-03-06 09:17:02 +01:00
s5p-cec [media] staging/media/s5p-cec/exynos_hdmi_cecctrl.c Fixed blank line before closing brace '}' 2017-01-30 15:48:54 -02:00
st-cec [media] cec: pass parent device in register(), not allocate() 2016-11-29 12:07:17 -02:00
Kconfig staging: bcm2835-v4l2: Add a build system for the module. 2017-01-31 10:44:27 +01:00
Makefile staging: bcm2835-v4l2: Add a build system for the module. 2017-01-31 10:44:27 +01:00