|
@@ -358,14 +358,14 @@ int rndis_filter_receive(struct hv_device *dev,
|
|
|
if (!net_dev->extension) {
|
|
|
dev_err(&dev->device, "got rndis message but no rndis device - "
|
|
|
"dropping this message!\n");
|
|
|
- return -1;
|
|
|
+ return -ENODEV;
|
|
|
}
|
|
|
|
|
|
rndis_dev = (struct rndis_device *)net_dev->extension;
|
|
|
if (rndis_dev->state == RNDIS_DEV_UNINITIALIZED) {
|
|
|
dev_err(&dev->device, "got rndis message but rndis device "
|
|
|
"uninitialized...dropping this message!\n");
|
|
|
- return -1;
|
|
|
+ return -ENODEV;
|
|
|
}
|
|
|
|
|
|
rndis_hdr = (struct rndis_message *)kmap_atomic(
|