Commit 87ff091c authored by Corey Minyard's avatar Corey Minyard

ipmi:ssif: Check dev before setting drvdata

dev can be NULL.
Reported-by: default avatarAustin Christ <austinwc@codeaurora.org>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 0944d889
...@@ -1777,7 +1777,8 @@ static int new_ssif_client(int addr, char *adapter_name, ...@@ -1777,7 +1777,8 @@ static int new_ssif_client(int addr, char *adapter_name,
addr_info->addr_src = addr_src; addr_info->addr_src = addr_src;
addr_info->dev = dev; addr_info->dev = dev;
dev_set_drvdata(dev, addr_info); if (dev)
dev_set_drvdata(dev, addr_info);
list_add_tail(&addr_info->link, &ssif_infos); list_add_tail(&addr_info->link, &ssif_infos);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment