From 777e5d3ed55749e44febe3ae18dd9f0050bb8102 Mon Sep 17 00:00:00 2001 From: Chase Southwood Date: Fri, 7 Feb 2014 23:02:27 -0600 Subject: [PATCH] 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-format-patch failed