summaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorAndreas Eversberg <andreas@eversberg.eu>2009-07-27 19:24:04 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-07-28 14:26:51 -0700
commitce4adcc6e5320062e0d993eb75152d165aaabbe6 (patch)
tree124af8db794a0d2307045e8c6f7bc058afed1fc7 /drivers/isdn
parentf151cd2c54ddc7714e2f740681350476cda03a28 (diff)
downloadlinux-stable-ce4adcc6e5320062e0d993eb75152d165aaabbe6.tar.gz
linux-stable-ce4adcc6e5320062e0d993eb75152d165aaabbe6.tar.bz2
linux-stable-ce4adcc6e5320062e0d993eb75152d165aaabbe6.zip
mISDN: Fix handling of receive buffer size in L1oIP
The size of receive buffer pointer was used to get size of receive buffer instead of recvbuf_size itself, so only 4/8 bytes could be transfered. This is a regression to 2.6.30 introduced by commit 8c90e11e3543d7de612194a042a148caeaab5f1d ("mISDN: Use kernel_{send,recv}msg instead of open coding") Signed-off-by: Andreas Eversberg <andreas@eversberg.eu> Signed-off-by: Karsten Keil <keil@b1-systems.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/mISDN/l1oip_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c
index 990e6a7e6674..c3b661a666cb 100644
--- a/drivers/isdn/mISDN/l1oip_core.c
+++ b/drivers/isdn/mISDN/l1oip_core.c
@@ -731,10 +731,10 @@ l1oip_socket_thread(void *data)
while (!signal_pending(current)) {
struct kvec iov = {
.iov_base = recvbuf,
- .iov_len = sizeof(recvbuf),
+ .iov_len = recvbuf_size,
};
recvlen = kernel_recvmsg(socket, &msg, &iov, 1,
- sizeof(recvbuf), 0);
+ recvbuf_size, 0);
if (recvlen > 0) {
l1oip_socket_parse(hc, &sin_rx, recvbuf, recvlen);
} else {