[PATCH 05/12] staging: lustre: obd: cleanup client import if client_obd_setup fails

2016-04-27 Thread James Simmons
From: Swapnil Pimpale client_obd_setup() allocates an obd_import which should be cleaned up if there is any failure afterwards in callers of client_obd_setup(). This patch fixes the bug in osc_setup(), mgc_setup(), mdc_setup() and lwp_setup(). The fix is to call

[PATCH 05/12] staging: lustre: obd: cleanup client import if client_obd_setup fails

2016-04-27 Thread James Simmons
From: Swapnil Pimpale client_obd_setup() allocates an obd_import which should be cleaned up if there is any failure afterwards in callers of client_obd_setup(). This patch fixes the bug in osc_setup(), mgc_setup(), mdc_setup() and lwp_setup(). The fix is to call obd_cleanup_client_import()