* [PATCH 1/1] mISDN: Fix handling of receive buffer size in L1oIP
2009-07-28 11:37 [PATCH 0/1] mISDN: Fix handling of receive buffer size in L1oIP Karsten Keil
@ 2009-07-27 17:24 ` Karsten Keil
2009-08-02 20:02 ` David Miller
2009-08-02 20:02 ` [PATCH 0/1] " David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Karsten Keil @ 2009-07-27 17:24 UTC (permalink / raw)
To: Linus Torvalds
Cc: linux-kernel, netdev, David Miller, i4ldeveloper,
Andreas Eversberg, Arnaldo Carvalho de Melo
From: Andreas Eversberg <andreas@eversberg.eu>
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>
---
drivers/isdn/mISDN/l1oip_core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c
index 990e6a7..c3b661a 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 {
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 0/1] mISDN: Fix handling of receive buffer size in L1oIP
2009-07-28 11:37 [PATCH 0/1] mISDN: Fix handling of receive buffer size in L1oIP Karsten Keil
2009-07-27 17:24 ` [PATCH 1/1] " Karsten Keil
@ 2009-08-02 20:02 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2009-08-02 20:02 UTC (permalink / raw)
To: keil; +Cc: torvalds, linux-kernel, netdev, i4ldeveloper, andreas, acme
From: Karsten Keil <keil@b1-systems.de>
Date: Tue, 28 Jul 2009 13:37:01 +0200
> This patch fix a regression introduced in 2.6.31 with the commit
> 8c90e11e3543d7de612194a042a148caeaab5f1d "mISDN: Use kernel_{send,recv}msg instead of open coding".
>
> Linus: you can pull the fix from
> git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6-net-next for_linus
>
> David for net-next-2.6 you can get it from:
> git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6-net-next for_david
Karsten, please don't send fix incusion requests like this. Either
send them via me always, or bypass me and go straight to Linus
always.
Asking two people to pull the fix in via two different means only
will make for confusion.
If it's a fix, get it into net-2.6 via me, otherwise submit it to
net-next-2.6 if it is not an important fix. Sending it to Linus
and my net-next-2.6 at the same time makes %100 no sense. One
tree is for fixes, and the other is for new development.
If you're worried about fixes propagating and merging properly,
I take care of that completely. When a fix gets into net-2.6
eventually I will merge net-2.6 into net-next-2.6 and that's how
it will show up there. If there is a dependency on new work that
this fix creates, tell me, and I'll do the merge more quickly
for you.
^ permalink raw reply [flat|nested] 4+ messages in thread