diff options
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 4e23674d3649..bca6fc0a3196 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -911,7 +911,7 @@ static inline int l2cap_chan_no_memcpy_fromiovec(struct l2cap_chan *chan, | |||
911 | /* Following is safe since for compiler definitions of kvec and | 911 | /* Following is safe since for compiler definitions of kvec and |
912 | * iovec are identical, yielding the same in-core layout and alignment | 912 | * iovec are identical, yielding the same in-core layout and alignment |
913 | */ | 913 | */ |
914 | struct kvec *vec = (struct kvec *)msg->msg_iov; | 914 | struct kvec *vec = (struct kvec *)msg->msg_iter.iov; |
915 | 915 | ||
916 | while (len > 0) { | 916 | while (len > 0) { |
917 | if (vec->iov_len) { | 917 | if (vec->iov_len) { |