diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2011-01-28 13:55:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-04 20:57:22 +0100 |
commit | ce1fd3585709e833ad102167024e97217734dbfd (patch) | |
tree | 4d87314cc66c9631ae0cae5e7d48c84dee5b07b3 /drivers/usb/host/pci-quirks.c | |
parent | USB: gadget: export functionfs.h to the includes available for userspace (diff) | |
download | linux-ce1fd3585709e833ad102167024e97217734dbfd.tar.xz linux-ce1fd3585709e833ad102167024e97217734dbfd.zip |
USB: gadget: f_fs: even zero-length packets require a buffer
Some UDC drivers fails to queue a request if req->buf == NULL even for
ZLP requests. This patch adds a poisoned pointer instead of NULL to
make the code compliant with the gadget specification and catches
possible bug in the UDC driver if it tries to dereference buffer pointer
on ZLP request.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/pci-quirks.c')
0 files changed, 0 insertions, 0 deletions