summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorJian Zhang <zhangjian.3032@bytedance.com>2026-04-03 17:05:59 +0800
committerCorey Minyard <corey@minyard.net>2026-04-03 07:49:53 -0500
commitea641be7a4faee4351f9c5ed6b188e1bbf5586a6 (patch)
treef7bf0230c14250becf042c17fd9be14e4e59cb2f /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent7fc3e2546cf3fa9a28a2acc92a512c779a8e5038 (diff)
ipmi: ssif_bmc: fix missing check for copy_to_user() partial failure
copy_to_user() returns the number of bytes that could not be copied, with a non-zero value indicating a partial or complete failure. The current code only checks for negative return values and treats all non-negative results as success. Treating any positive return value from copy_to_user() as an error and returning -EFAULT. Fixes: dd2bc5cc9e25 ("ipmi: ssif_bmc: Add SSIF BMC driver") Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com> Message-ID: <20260403090603.3988423-2-zhangjian.3032@bytedance.com> Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions