s390/iucv: Fix vargs handling in iucv_alloc_device()
authorAlexandra Winter <wintera@linux.ibm.com>
Wed, 21 Aug 2024 09:13:37 +0000 (11:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Aug 2024 20:09:20 +0000 (13:09 -0700)
commit0124fb0ebf3b0ef89892d42147c9387be3105318
tree1ce62d4f439fd4a1a358e8549f847a7cc4f74d31
parent57fb67783c4011581882f32e656d738da1f82042
s390/iucv: Fix vargs handling in iucv_alloc_device()

iucv_alloc_device() gets a format string and a varying number of
arguments. This is incorrectly forwarded by calling dev_set_name() with
the format string and a va_list, while dev_set_name() expects also a
varying number of arguments.

Symptoms:
Corrupted iucv device names, which can result in log messages like:
sysfs: cannot create duplicate filename '/devices/iucv/hvc_iucv1827699952'

Fixes: 4452e8ef8c36 ("s390/iucv: Provide iucv_alloc_device() / iucv_release_device()")
Link: https://bugzilla.suse.com/show_bug.cgi?id=1228425
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Thorsten Winkler <twinkler@linux.ibm.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://patch.msgid.link/20240821091337.3627068-1-wintera@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/iucv/iucv.c