efivarfs: Fix return value of efivarfs_file_write()
We're stuffing a variable of type size_t (unsigned) into a ssize_t (signed) which, even though both types should be the same number of bits, it's just asking for sign issues to be introduced. Cc: Jeremy Kerr <jeremy.kerr@canonical.com> Reported-by: NAlan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
Showing
想要评论请 注册 或 登录