]> git.baikalelectronics.ru Git - kernel.git/commit
can: vxcan: improve handling of missing peer name attribute
authorOliver Hartkopp <socketcan@hartkopp.net>
Sat, 2 Dec 2017 17:48:52 +0000 (18:48 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 4 Jan 2018 15:14:38 +0000 (16:14 +0100)
commita5f2465499fa2e77ed311b33cbbf147dac5955aa
treee3c18bcd6fb144fd1c2c94463b0a350e7d65d7fb
parentf7788da438d1005fa03b7a652e24574feff6d414
can: vxcan: improve handling of missing peer name attribute

Picking up the patch from Serhey Popovych (commit 4f2903f919ad8e46534,
"veth: Be more robust on network device creation when no attributes").

When the peer name attribute is not provided the former implementation tries
to register the given device name twice ... which leads to -EEXIST.
If only one device name is given apply an automatic generated and valid name
for the peer.

Cc: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/vxcan.c