[RAMEN9610-21775]cfg80211: fix callback type mismatches in wext-compat
authorw9697.lee <w9697.lee@samsung.com>
Thu, 24 Sep 2020 07:52:15 +0000 (16:52 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:40 +0000 (20:23 +0300)
commita280e028c0909c88ff4209b600d01ac0b737eb20
treed7abf38c31eb1c6c392aa8e3765ea87ef9af9e94
parent028ae84c8f17c4e19b0aeac1d367467cc7a40493
[RAMEN9610-21775]cfg80211: fix callback type mismatches in wext-compat

Instead of casting callback functions to type iw_handler, which trips
indirect call checking with Clang's Control-Flow Integrity (CFI), add
stub functions with the correct type.

Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I05a4aa46d7c0c0861985f21f3c9e4c8a23eef16d
net/wireless/wext-compat.c