summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorChase Southwood <chase.southwood@yahoo.com>2014-02-08 09:02:27 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-12 00:22:32 +0400
commit777e5d3ed55749e44febe3ae18dd9f0050bb8102 (patch)
treebff4d005fe66a21ffcd343775957b7b96f00a1df /include/linux/stackprotector.h
parent8542373dccd2f5dd4dac0a552e2a22fc4402dbe9 (diff)
downloadlinux-777e5d3ed55749e44febe3ae18dd9f0050bb8102.tar.xz
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 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions