]> git.itanic.dy.fi Git - linux-stable/commit
wifi: cfg80211: debugfs: fix return type in ht40allow_map_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2022 07:03:21 +0000 (10:03 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Aug 2022 08:04:46 +0000 (10:04 +0200)
commitd776763f48084926b5d9e25507a3ddb7c9243d5e
tree9d869b0152a7543c1be694d765420b3a0437de79
parent15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0
wifi: cfg80211: debugfs: fix return type in ht40allow_map_read()

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: 80a3511d70e8 ("cfg80211: add debugfs HT40 allow map")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YutvOQeJm0UjLhwU@kili
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/debugfs.c