]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix incorrect type for ret
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Mon, 25 Aug 2025 02:29:11 +0000 (10:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:13:41 +0000 (11:13 +0200)
commit8df33f4d4a0bf021e4fa3e62f58092b3db493fd3
tree78a617a36e8d17c07b8d49a8c6030ac9898a4392
parent32adb020b0c32939da1322dcc87fc0ae2bc935d1
wifi: mac80211: fix incorrect type for ret

[ Upstream commit a33b375ab5b3a9897a0ab76be8258d9f6b748628 ]

The variable ret is declared as a u32 type, but it is assigned a value
of -EOPNOTSUPP. Since unsigned types cannot correctly represent negative
values, the type of ret should be changed to int.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Link: https://patch.msgid.link/20250825022911.139377-1-liaoyuanhong@vivo.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/driver-ops.h