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/