diff options
author | Chase Southwood <chase.southwood@yahoo.com> | 2014-02-07 23:02:27 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-11 12:22:32 -0800 |
commit | 777e5d3ed55749e44febe3ae18dd9f0050bb8102 (patch) | |
tree | bff4d005fe66a21ffcd343775957b7b96f00a1df /drivers/staging/android | |
parent | 8542373dccd2f5dd4dac0a552e2a22fc4402dbe9 (diff) |
Staging: comedi: fix memory leak in comedi_bond.c
We allocate bdev and then krealloc the devs pointer in order to add bdev
at the end of the devpriv->devs array list. But if for some reason this
krealloc fails, we need to free bdev before returning an error otherwise
this memory is leaked.
Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Acked-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
0 files changed, 0 insertions, 0 deletions