diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-05-07 05:13:23 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-20 08:11:55 +0200 |
| commit | 82fc349bfd8bfea57ad4174cac6c8851a0a05c13 (patch) | |
| tree | 3c2422593410cac29ce50e8ac2959d9ad403a7f3 /security/selinux/hooks.c | |
| parent | 2f0919d6788f841b3333959080ac1a344ec146b1 (diff) | |
usb: gadget: legacy: fix error return code in gncm_bind()
commit e27d4b30b71c66986196d8a1eb93cba9f602904a upstream.
If 'usb_otg_descriptor_alloc()' fails, we must return a
negative error code -ENOMEM, not 0.
Fixes: 1156e91dd7cc ("usb: gadget: ncm: allocate and init otg descriptor by otg capabilities")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
