diff options
author | Jesper Juhl <jj@chaosbits.net> | 2013-09-30 22:44:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-30 18:33:13 -0700 |
commit | b20204310ad18516146264830bc7b840b6052d57 (patch) | |
tree | 6e444dce6e585d709c09e7d84e59cad6cfab516d /drivers/staging/vt6656/wcmd.h | |
parent | 78b4c76b5f1371c6161f4d5f9f16e061d69170ae (diff) | |
download | op-kernel-dev-b20204310ad18516146264830bc7b840b6052d57.zip op-kernel-dev-b20204310ad18516146264830bc7b840b6052d57.tar.gz |
staging: lustre: Don't leak 'buffer' in cfs_get_environ()
If 'down_read_trylock' fails we'll curently leak the memory allocated to 'buffer'.
Fix the leak by simply kfree'ing 'buffer' before returning '-EDEADLK'.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/wcmd.h')
0 files changed, 0 insertions, 0 deletions