diff options
author | Luiz Augusto von Dentz <[email protected]> | 2022-02-14 17:59:38 -0800 |
---|---|---|
committer | Marcel Holtmann <[email protected]> | 2022-02-24 21:05:21 +0100 |
commit | 29fb608396d6a62c1b85acc421ad7a4399085b9f (patch) | |
tree | f3f5c91a3ff17fbaa505e913512d76133f709e5e /net/lapb/lapb_subr.c | |
parent | fa78d2d1d64f147062e384a4a10a26a5f89944b5 (diff) |
Bluetooth: Fix bt_skb_sendmmsg not allocating partial chunks
Since bt_skb_sendmmsg can be used with the likes of SOCK_STREAM it
shall return the partial chunks it could allocate instead of freeing
everything as otherwise it can cause problems like bellow.
Fixes: 81be03e026dc ("Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg")
Reported-by: Paul Menzel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215594
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Tested-by: Paul Menzel <[email protected]> (Nokia N9 (MeeGo/Harmattan)
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions