Commit 0f2c1f80 authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Greg Kroah-Hartman

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: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20230522101210.2207395-2-tomas.winkler@intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 783aa470
...@@ -108,7 +108,7 @@ struct mkhi_fw_ver { ...@@ -108,7 +108,7 @@ struct mkhi_fw_ver {
static int mei_osver(struct mei_cl_device *cldev) static int mei_osver(struct mei_cl_device *cldev)
{ {
const size_t size = MKHI_OSVER_BUF_LEN; const size_t size = MKHI_OSVER_BUF_LEN;
char buf[MKHI_OSVER_BUF_LEN]; u8 buf[MKHI_OSVER_BUF_LEN];
struct mkhi_msg *req; struct mkhi_msg *req;
struct mkhi_fwcaps *fwcaps; struct mkhi_fwcaps *fwcaps;
struct mei_os_ver *os_ver; struct mei_os_ver *os_ver;
...@@ -137,7 +137,7 @@ static int mei_osver(struct mei_cl_device *cldev) ...@@ -137,7 +137,7 @@ static int mei_osver(struct mei_cl_device *cldev)
sizeof(struct mkhi_fw_ver_block) * (__num)) sizeof(struct mkhi_fw_ver_block) * (__num))
static int mei_fwver(struct mei_cl_device *cldev) static int mei_fwver(struct mei_cl_device *cldev)
{ {
char buf[MKHI_FWVER_BUF_LEN]; u8 buf[MKHI_FWVER_BUF_LEN];
struct mkhi_msg req; struct mkhi_msg req;
struct mkhi_msg *rsp; struct mkhi_msg *rsp;
struct mkhi_fw_ver *fwver; struct mkhi_fw_ver *fwver;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment