From: Bryan O'Donoghue Date: Mon, 14 Sep 2015 09:48:43 +0000 (+0100) Subject: greybus: loopback: ensure sysfs entries are cleaned up on exit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=909cdeb5d81926bb294394919ba84bf9b98d5744;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: loopback: ensure sysfs entries are cleaned up on exit bdd4bba4 ('greybus/loopback: add module level sys/debug fs data points') added a sysfs entry attached to gb_dev but missed the jump to out_sysfs_dev This patchs fixes the missing jump to out_sysfs_dev. Signed-off-by: Bryan O'Donoghue Reported-by: Viresh Kumar Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 8bfeec8f71a0..338522a49f9d 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -873,7 +873,7 @@ static int gb_loopback_connection_init(struct gb_connection *connection) if (gb_dev.size_max <= sizeof(struct gb_loopback_transfer_request)) { retval = -EINVAL; - goto out_sysfs; + goto out_sysfs_dev; } gb_dev.size_max -= sizeof(struct gb_loopback_transfer_request); }