29e8e659f9
packet_sock xmit could be dev_queue_xmit, which also returns negative
errors. So only checking positive errors is not enough, or userspace
sendmsg may return success while packet is not send out.
Move the net_xmit_errno() assignment in the braces as checkpatch.pl said
do not use assignment in if condition.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
af_packet.c | ||
diag.c | ||
internal.h |