Skip to content

Commit 246c035

Browse files
author
Adham Abozaeid
committed
staging: wilc1000: Incorrect pointer passed while getting if handler
In wilc_wlan.c, buffer is being passed to get_if_handler to obtain the wilc_netdev, while it should be buff_ptr that points to the current position in buffer that is being processed Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com>
1 parent b44fe0e commit 246c035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/wilc1000/wilc_wlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ static void wilc_wlan_handle_rx_buff(struct wilc *wilc, u8 *buffer, int size)
13371337
} else if (pkt_len > 0) {
13381338
struct net_device *wilc_netdev;
13391339

1340-
wilc_netdev = get_if_handler(wilc, buffer);
1340+
wilc_netdev = get_if_handler(wilc, buff_ptr);
13411341
if (!wilc_netdev) {
13421342
PRINT_ER(vif->ndev,
13431343
"wilc_netdev in wilc is NULL");

0 commit comments

Comments
 (0)