summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-04 10:44:15 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-04 10:44:15 -0800
commit412e6d3fec247b2bc83106514b0fb3b17e2eb7fe (patch)
treecbd241740a61d7ff60742d6f94d1564e796fb405 /drivers/net
parent252bf9f4c43fd58f96587a97866cb7cc980e7544 (diff)
parent433e19cf33d34bb6751c874a9c00980552fe508c (diff)
downloadlinux-412e6d3fec247b2bc83106514b0fb3b17e2eb7fe.tar.gz
linux-412e6d3fec247b2bc83106514b0fb3b17e2eb7fe.tar.bz2
linux-412e6d3fec247b2bc83106514b0fb3b17e2eb7fe.zip
Merge tag 'char-misc-4.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver fixes from Greg KH: "Here are two bugfixes that resolve some reported issues. One in the firmware loader, that should fix the much-reported problem of crashes with it. The other is a hyperv fix for a reported regression. Both have been in linux-next for a week or so with no reported issues" * tag 'char-misc-4.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read() firmware: fix NULL pointer dereference in __fw_load_abort()
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hyperv/netvsc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index 5a1cc089acb7..86e5749226ef 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -1295,6 +1295,9 @@ void netvsc_channel_cb(void *context)
ndev = hv_get_drvdata(device);
buffer = get_per_channel_state(channel);
+ /* commit_rd_index() -> hv_signal_on_read() needs this. */
+ init_cached_read_index(channel);
+
do {
desc = get_next_pkt_raw(channel);
if (desc != NULL) {
@@ -1347,6 +1350,9 @@ void netvsc_channel_cb(void *context)
bufferlen = bytes_recvd;
}
+
+ init_cached_read_index(channel);
+
} while (1);
if (bufferlen > NETVSC_PACKET_SIZE)