commit | 26186e5f2c1a6d1c244a3052f02e46ae29d823f2 | [log] [tgz] |
---|---|---|
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | Thu Apr 28 11:42:21 2016 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Apr 28 12:35:36 2016 -0700 |
tree | f11ffd2e06d3e622175e24893917af145ead163f | |
parent | f5e6253fe6de35fc2fa059974dbd9d61f32e4cd0 [diff] |
usb: misc: usbtest: fix error of urb allocation urb allocation will fail when usbtest_alloc_urb() tries to allocate zero length buffer, but it doesn't need it in fact, so just skips buffer allocation in the case. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>