staging: rts5208/ms.c: add missing releases in mg_get_local_EKB and mg_get_ICV
authorQuentin Lambert <lambert.quentin@gmail.com>
Fri, 12 Aug 2016 14:15:18 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:37:36 +0000 (18:37 +0200)
commit0b25e9fa01fc9ed333d266172128ba37d44cd7be
treee754083a4ef88ea53efb8c483e5a2dd49845abc4
parent541e4d2d1d99c51a3bbc887b88ac3d65534b0fc9
staging: rts5208/ms.c: add missing releases in mg_get_local_EKB and mg_get_ICV

mg_get_local_EKB and mg_get_ICV used to return with an error code before
releasing all resources. This patch add a jump to the appropriate label
ensuring that the resources are properly released before returning.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/ms.c