]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mei: fix ssize_t to int assignment in read and write ops.
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 12 Jul 2018 14:10:10 +0000 (17:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jul 2018 14:23:19 +0000 (16:23 +0200)
commit5151e2b578e92f88d676ad78d36a2ef93d0a0dea
tree4eae9d2c2162fa6d91216d528e3d9b28c35260a1
parent44c98df01851c0d5941b06c60d1bd092bac088c3
mei: fix ssize_t to int assignment in read and write ops.

Use ssize_t for rets variables in mei_write(), mei_read(), and
mei_cl_write() as well as change the return type of mei_cl_write()
to ssize_t, to prevent assignment of possible 64bit size_t
to int 32 bit variable.

As by product also eliminate warning
drivers/misc/mei/client.c:1702:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/client.c
drivers/misc/mei/client.h
drivers/misc/mei/main.c