diff options
| author | Vasily Averin <vvs@virtuozzo.com> | 2018-11-15 13:15:05 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-13 10:05:33 +0100 |
| commit | a09b8db22851526c3607dc4d48c22bf9a444ae98 (patch) | |
| tree | 4d25b62a6171a16755aebe5529b59bdaf8460d65 /lib/flex_array.c | |
| parent | 11e047131fff3966f4b6c6929d14a378c5e916d1 (diff) | |
dlm: fixed memory leaks after failed ls_remove_names allocation
commit b982896cdb6e6a6b89d86dfb39df489d9df51e14 upstream.
If allocation fails on last elements of array need to free already
allocated elements.
v2: just move existing out_rsbtbl label to right place
Fixes 789924ba635f ("dlm: fix race between remove and lookup")
Cc: stable@kernel.org # 3.6
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions
