]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Initialize mbox lock and list for mgmt dev
authorGanesh Goudar <ganeshgr@chelsio.com>
Thu, 12 Jan 2017 06:53:21 +0000 (12:23 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jan 2017 14:23:53 +0000 (09:23 -0500)
commit189d4962769cf482ff09d3470e81e8dfed366c80
treefd0744d252300aea243f2d963525b9db3092af12
parenta9479ae0c48d4a666a83d460e9568fd86bc12370
cxgb4: Initialize mbox lock and list for mgmt dev

Initialize mbox lock and list for mgmt dev to avoid NULL pointer
dereference when cxgb_set_vf_mac is called.

And also allocate memory for private data while allocating mgmt
netdev.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c