diff options
| author | stephen hemminger <stephen@networkplumber.org> | 2017-07-19 11:53:16 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-07-19 22:20:05 -0700 |
| commit | 9749fed5d43d84b86f1c98b70167c31c296bb6a6 (patch) | |
| tree | 0ec6e775b34202d7725fc768cd0742f3ae6ebfcc /scripts/patch-kernel | |
| parent | netvsc: change logic for change mtu and set_queues (diff) | |
| download | linux-9749fed5d43d84b86f1c98b70167c31c296bb6a6.tar.gz linux-9749fed5d43d84b86f1c98b70167c31c296bb6a6.zip | |
netvsc: use ERR_PTR to avoid dereference issues
The rndis_filter_device_add function is called both in
probe context and RTNL context,and creates the netvsc_device
inner structure. It is easier to get the RTNL lock annotation
correct if it returns the object directly, rather than implicitly
by updating network device private data.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
