]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: Add check for devm_kstrdup()
authorHaoxiang Li <haoxiang_li2024@163.com>
Wed, 19 Feb 2025 03:36:45 +0000 (11:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:39 +0000 (10:15 +0200)
commitef44c9e81172fd3495ae0852047510b6dfdb4e40
treedac971084237afc56b808368178d952268b72114
parent9d6b789a8ff95d4fc4df389f4c57693b11c3f5c8
wifi: mt76: Add check for devm_kstrdup()

commit 4bc1da524b502999da28d287de4286c986a1af57 upstream.

Add check for the return value of devm_kstrdup() in
mt76_get_of_data_from_mtd() to catch potential exception.

Fixes: e7a6a044f9b9 ("mt76: testmode: move mtd part to mt76_dev")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20250219033645.2594753-1-haoxiang_li2024@163.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/eeprom.c