]> git.baikalelectronics.ru Git - kernel.git/commit
f_phonet: fix page offset of first received fragment
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Thu, 17 Nov 2011 02:58:55 +0000 (02:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 22:03:02 +0000 (17:03 -0500)
commit3d45d2004dd0d4e43eec92f2b62b569afa5fb098
tree86110190e30a060bbd0cc5f490a81d5402e1b00c
parent1cda0cd8e5f7174eefe11b11819ff370562e12c5
f_phonet: fix page offset of first received fragment

We pull one byte (the MAC header) from the first fragment before the
fragment is actually appended. So the socket buffer length is 1, not 0.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/usb/gadget/f_phonet.c