kni: fix ioctl signature
authorMarkus Theil <markus.theil@secunet.com>
Fri, 3 Dec 2021 07:19:07 +0000 (08:19 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 2 Feb 2022 19:55:05 +0000 (20:55 +0100)
commitf1b2991c3c0f480fe8e9f6c5c640a1d913b76bed
treeca21e8b675137945eca4e1d2e157a183756d6e50
parent5569dd7d90b8bfb08facd2125ff55fefd8e61626
kni: fix ioctl signature

Fix kni's ioctl signature to correctly match the kernel's
structs. This shaves off the (void*) casts and uses struct file*
instead of struct inode*. With the correct signature, control flow
integrity checkers are no longer confused at this point.

Signed-off-by: Markus Theil <markus.theil@secunet.com>
Tested-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
kernel/linux/kni/kni_misc.c