greybus: loopback: ensure sysfs entries are cleaned up on exit
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Mon, 14 Sep 2015 09:48:43 +0000 (10:48 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:35:58 +0000 (21:35 -0700)
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 <bryan.odonoghue@linaro.org>
Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c

index 8bfeec8f71a023dc9ad9253ca86a4b2c72a29852..338522a49f9d2d2d3465c0c6a4cb2fcf6cde55b1 100644 (file)
@@ -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);
        }