mei: vsc: Use struct vsc_tp_packet as vsc-tp tx_buf and rx_buf type
authorHans de Goede <hdegoede@redhat.com>
Tue, 18 Mar 2025 14:12:03 +0000 (15:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 16:22:39 +0000 (18:22 +0200)
commitf88c0c72ffb014e5eba676ee337c4eb3b1d6a119
tree9123ba352bdab7e1db01b392874036d48319c6b8
parent00f1cc14da0f06d2897b8c528df7c7dcf1b8da50
mei: vsc: Use struct vsc_tp_packet as vsc-tp tx_buf and rx_buf type

vsc_tp.tx_buf and vsc_tp.rx_buf point to a struct vsc_tp_packet, use
the correct type instead of "void *" and use sizeof(*ptr) when allocating
memory for these buffers.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Alexander Usyskin <alexander.usyskin@intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250318141203.94342-3-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/vsc-tp.c