diff options
| author | Dan Carpenter <[email protected]> | 2017-02-18 02:20:15 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-03-06 09:17:02 +0100 |
| commit | 8e17858a8818b40d66e83de2bf3724c64eaad72d (patch) | |
| tree | 52110d34a141bfbca8e5724c3fd0b4b28f8bfedf /tools/perf/scripts/python | |
| parent | 0743a78fde7cc561ad53b657be693e7f9981a73a (diff) | |
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: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: walter harms <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions