summaryrefslogtreecommitdiffstats
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2020-11-17 10:16:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-20 16:32:42 +0100
commite7694cb6998379341fd9bf3bd62b48c4e6a79385 (patch)
treecd5c2745685ebe9ac1c37c9e8afb60b92f4ca5c9 /crypto/drbg.c
parent9ca57518361418ad5ae7dc38a2128fbf4855e1a2 (diff)
downloadlinux-e7694cb6998379341fd9bf3bd62b48c4e6a79385.tar.bz2
usb: gadget: f_midi: Fix memleak in f_midi_alloc
In the error path, if midi is not null, we should free the midi->id if necessary to prevent memleak. Fixes: b85e9de9e818d ("usb: gadget: f_midi: convert to new function interface with backward compatibility") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20201117021629.1470544-2-zhangqilong3@huawei.com Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/drbg.c')
0 files changed, 0 insertions, 0 deletions