Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hv/netvsc: Fix NULL dereference at single queue mode fallback
The recent commit 916c5e1 ("hv/netvsc: fix handling of fallback to single queue mode") tried to fix the fallback behavior to a single queue mode, but it changed the function to return zero incorrectly, while the function should return an object pointer. Eventually this leads to a NULL dereference at the callers that expect non-NULL value. Fix it by returning the proper net_device object. Fixes: 916c5e1 ("hv/netvsc: fix handling of fallback to single queue mode") Signed-off-by: Takashi Iwai <[email protected]> Reviewed-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information