Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mei: bus-fixup: fix buffer type

The __mei_cl_recv and __mei_cl_send accepts u8 buffer.
Fix buffer type from char to u8.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20230522101210.2207395-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Usyskin and committed by
Greg Kroah-Hartman
0f2c1f80 783aa470

+2 -2
+2 -2
drivers/misc/mei/bus-fixup.c
··· 108 108 static int mei_osver(struct mei_cl_device *cldev) 109 109 { 110 110 const size_t size = MKHI_OSVER_BUF_LEN; 111 - char buf[MKHI_OSVER_BUF_LEN]; 111 + u8 buf[MKHI_OSVER_BUF_LEN]; 112 112 struct mkhi_msg *req; 113 113 struct mkhi_fwcaps *fwcaps; 114 114 struct mei_os_ver *os_ver; ··· 137 137 sizeof(struct mkhi_fw_ver_block) * (__num)) 138 138 static int mei_fwver(struct mei_cl_device *cldev) 139 139 { 140 - char buf[MKHI_FWVER_BUF_LEN]; 140 + u8 buf[MKHI_FWVER_BUF_LEN]; 141 141 struct mkhi_msg req; 142 142 struct mkhi_msg *rsp; 143 143 struct mkhi_fw_ver *fwver;