Commit d4ecf4c3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Todd Kjos
Browse files

UPSTREAM: 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: 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>

Bug: 253289327
Change-Id: Id02a08a859b8fcc90789af7aaae17bec503bb14a
(cherry picked from commit d776763f)
Signed-off-by: default avatarKiran Kumar Lokere <quic_klokere@quicinc.com>
Signed-off-by: default avatarVeerendranath Jakkam <quic_vjakkam@quicinc.com>
parent da9a7266
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment