]> git.baikalelectronics.ru Git - kernel.git/commit
platform/mellanox: mlxreg-hotplug: Add check for negative adapter number
authorVadim Pasternak <vadimp@mellanox.com>
Fri, 26 Jan 2018 19:03:45 +0000 (19:03 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Wed, 31 Jan 2018 18:36:50 +0000 (10:36 -0800)
commit319eaea6c41a0e1104aa530ed7ece7fed426aadd
treecb715478d1727adaf5a7f619d38e3d6a81b066e6
parent20f71a692753a62ef04fe563a6e3b89f5ff46480
platform/mellanox: mlxreg-hotplug: Add check for negative adapter number

Verify before creation of hotplug device if the associated adapter number
is negative. It could be in case hotplug event is not associated with
hotplug device.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/mellanox/mlxreg-hotplug.c