Whamcloud - gitweb
LU-3576 mdc: prevent fall through in mdc_iocontrol() 62/6962/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 12 Jul 2013 15:21:48 +0000 (10:21 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Jul 2013 05:45:38 +0000 (05:45 +0000)
commit0d166ef1fd80b0056497969b956d04e32e86aa85
tree6ac6e58f04ed1d1e0cea3bb75181fecdf410d7ff
parentfef75d4c76745e8cd35df36e4691ed66c9e5902f
LU-3576 mdc: prevent fall through in mdc_iocontrol()

In mdc_iocontrol() add a goto to the end of the LL_IOC_HSM_STATE_SET
case, preventing fall through into the next case. In the same
function, replace the return statement in OBD_IOC_QUOTACTL with a
goto, so that a reference to the module is not leaked.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib3c04835f8cd761849869c8fb11672d66aa14025
Reviewed-on: http://review.whamcloud.com/6962
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdc/mdc_request.c