commit | d212b4633c3a99561939f2d423eacf3263850bcd | [log] [tgz] |
---|---|---|
author | Haiyang Zhang <haiyangz@microsoft.com> | Wed Mar 23 09:43:09 2016 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Mar 23 14:38:55 2016 -0400 |
tree | d5bc5a90517956c625b52bfbf92fb16bc7b9fc3f | |
parent | 1f461dcdd296eecedaffffc6bae2bfa90bd7eb89 [diff] |
hv_netvsc: Fix accessing freed memory in netvsc_change_mtu() struct netvsc_device is freed in rndis_filter_device_remove(). So we save the nvdev->num_chn into a temp variable for later usage. (Please also include this patch into stable branch.) Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>