Patch "wifi: cfg80211: debugfs: fix return type in ht40allow_map_read()" has been added to the 4.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-cfg80211-debugfs-fix-return-type-in-ht40allow_m.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4ffd95fc250d99695c775513385835af2bdc471d
Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date:   Thu Aug 4 10:03:21 2022 +0300

    wifi: cfg80211: debugfs: fix return type in ht40allow_map_read()
    
    [ Upstream commit d776763f48084926b5d9e25507a3ddb7c9243d5e ]
    
    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@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/YutvOQeJm0UjLhwU@kili
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c
index 5d453916a4179..6a7f4432440a5 100644
--- a/net/wireless/debugfs.c
+++ b/net/wireless/debugfs.c
@@ -68,9 +68,10 @@ static ssize_t ht40allow_map_read(struct file *file,
 {
 	struct wiphy *wiphy = file->private_data;
 	char *buf;
-	unsigned int offset = 0, buf_size = PAGE_SIZE, i, r;
+	unsigned int offset = 0, buf_size = PAGE_SIZE, i;
 	enum nl80211_band band;
 	struct ieee80211_supported_band *sband;
+	ssize_t r;
 
 	buf = kzalloc(buf_size, GFP_KERNEL);
 	if (!buf)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux