Staging: hv: vmbus: Cleanup the error return value in vmbus_recvpacket_raw()
[deliverable/linux.git] / drivers / staging / hv / netvsc.c
index d547ff676a0baa07995aa3d81cb493c7352bb7ec..b89ac7e40ca8e71e4e3371903a0dfa8a6fe39ea4 100644 (file)
@@ -884,7 +884,7 @@ static void netvsc_channel_cb(void *context)
 
                                break;
                        }
-               } else if (ret == -2) {
+               } else if (ret == -ENOBUFS) {
                        /* Handle large packet */
                        buffer = kmalloc(bytes_recvd, GFP_ATOMIC);
                        if (buffer == NULL) {
This page took 0.03439 seconds and 5 git commands to generate.