Skip to content

Commit e9d0ecc

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 Fixes #24 Signed-off-by: Adham Abozaeid <[email protected]>
1 parent bfd7e50 commit e9d0ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wilc/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)