drivers/block/nbd.c sock_recvmsg/sock_sendmsg return check incorrect ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



linux-2.4.23/drivers/block/nbd.c
In nbd_xmit() around line 129 to 145 ...

'result' stores the return value of sock_recvmsg() and sock_sendmsg(). At
line 145 the check for error is done as if ( result <= 0 ). Why the '=' ?

I checked sock_recvmsg() and sock_sendmsg() in net/socket.c and they seem
to be treating only negative values as error.

regards
srp
---
gcc -nobugs -porting prog.c
http://www.seti.org
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux