From: Chase Southwood Date: Sat, 8 Feb 2014 05:02:27 +0000 (-0600) Subject: Staging: comedi: fix memory leak in comedi_bond.c X-Git-Tag: v3.15-rc1~139^2~1187 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777e5d3ed55749e44febe3ae18dd9f0050bb8102;p=pandora-kernel.git 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 Acked-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed