projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44856be
)
i40iw: Add missing check for interface already open
author
Mustafa Ismail
<
[email protected]
>
Mon, 22 Aug 2016 23:17:12 +0000
(18:17 -0500)
committer
Doug Ledford
<
[email protected]
>
Tue, 23 Aug 2016 16:52:52 +0000
(12:52 -0400)
In i40iw_open(), check if interface is already open
and return success if it is.
Fixes: 8e06af711bf2 ("i40iw: add main, hdr, status")
Reported-by: Stefan Assmann <
[email protected]
>
Signed-off-by: Mustafa Ismail <
[email protected]
>
Signed-off-by: Shiraz Saleem <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/i40iw/i40iw_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/i40iw/i40iw_main.c
b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 6e9081380a276cbb78da8687820b9c7092f684af..0cbbe40382982479e608aca0edbe5a9ab1c267d7 100644
(file)
--- a/
drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/
drivers/infiniband/hw/i40iw/i40iw_main.c
@@
-1558,6
+1558,10
@@
static int i40iw_open(struct i40e_info *ldev, struct i40e_client *client)
enum i40iw_status_code status;
struct i40iw_handler *hdl;
+ hdl = i40iw_find_netdev(ldev->netdev);
+ if (hdl)
+ return 0;
+
hdl = kzalloc(sizeof(*hdl), GFP_KERNEL);
if (!hdl)
return -ENOMEM;