Files
twx-linux/net
Jia-Ju Bai e8c9b54ff8 net: qrtr: fix error return code of qrtr_sendmsg()
commit 179d0ba0c4 upstream.

When sock_alloc_send_skb() returns NULL to skb, no error return code of
qrtr_sendmsg() is assigned.
To fix this bug, rc is assigned with -ENOMEM in this case.

Fixes: 194ccc8829 ("net: qrtr: Support decoding incoming v2 packets")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 16:43:44 +01:00
..
…
…
…
…
…
…
…
…
…
2021-02-03 23:23:27 +01:00
…
2020-10-29 09:54:55 +01:00
2020-12-30 11:25:44 +01:00
…
…
…
…