staging: gdm7240: fix error handling of probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Aug 2013 08:31:18 +0000 (11:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 17:07:17 +0000 (10:07 -0700)
commit234ad18249a46af8703246a3c417bb4382512d2f
tree8ec3223475436d456e33b545dc6206fec6e8ce7e
parent35b7b91ab928c8f84ad49dc4f6d7d61f19d3ccb9
staging: gdm7240: fix error handling of probe()

The error handling is messy and not in kernel style.  On some paths it
frees "mux_dev" twice.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_mux.c