Re: [PATCH net] qlge: Fix qlge_update_hw_vlan_features to handle if interface is down
From: Harish Patil <hidden>
Date: 2015-01-30 23:40:22
Currently qlge_update_hw_vlan_features() will always first put the
interface down, then update features and then bring it up again. But it
is possible to hit this code while the adapter is down and this causes a
non-paired call to napi_disable(), which will get stuck.
This patch fixes it by skipping these down/up actions if the interface
is already down.
Fixes: a45adbe8d352 ("qlge: Enhance nested VLAN (Q-in-Q) handling.")
Cc: Harish Patil <redacted>
Signed-off-by: Marcelo Ricardo Leitner <redacted>
---
drivers/net/ethernet/qlogic/qlge/qlge_main.c | 26
++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)Acked-by: Harish Patil <redacted> Thanks, Harish ________________________________ This message and any attached documents contain information from the sending company or its parent company(s), subsidiaries, divisions or branch offices that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.