diff options
author | David Brownell <david-b@pacbell.net> | 2005-10-16 15:06:51 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 16:47:44 -0700 |
commit | cb97c5c9d0789d65d7ec42a80946fa9eb2ec5182 (patch) | |
tree | 825fd67b5f945b31a5649bcfa1eaf5543cf93e5c /net | |
parent | 1fcb4454cbada6dc495302172ac0412aa7d35fd4 (diff) |
[PATCH] omap_udc dma off-by-one fix
The change to make DMA work two bytes at a time omitted an important
tweak that affects the file_storage gadget: it needs to recognize when
the host writes an odd number of bytes. (The network layer ignores
such extra bytes.)
This patch resolves that issue by checking the relevant bit and adjusting
the rx byte count, so that for example a legal 13 byte request doesn't
morph into an illegal 14 byte one any more.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions