Commit 7bf81266 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jialin Zhang
Browse files

wifi: cfg80211: debugfs: fix return type in ht40allow_map_read()

stable inclusion
from stable-v5.10.142
commit 6855efbaf54a9bff0871f0acedc6c63186ae6c58
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6CSFH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6855efbaf54a9bff0871f0acedc6c63186ae6c58



--------------------------------

[ Upstream commit d776763f ]

The return type is supposed to be ssize_t, which is signed long,
but "r" was declared as unsigned int.  This means that on 64 bit systems
we return positive values instead of negative error codes.

Fixes: 80a3511d ("cfg80211: add debugfs HT40 allow map")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YutvOQeJm0UjLhwU@kili


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent dbbfc6fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment