[RFC PATCH 1/2] net: tap: Fix incorrect memory access

2019-09-29 Thread Amadeusz Sławiński
, socket). As can be seen from that flow sock_init_data, should be called with sock, being part of struct socket_alloc, instead of being part of struct tap_queue. Refactor code to follow flow similar in other places where sock is allocated correctly. Signed-off-by: Amadeusz Sławiński --- drivers

[RFC PATCH 2/2] net: tun: Fix incorrect memory access

2019-09-29 Thread Amadeusz Sławiński
correctly. Signed-off-by: Amadeusz Sławiński --- drivers/net/tun.c | 92 +-- 1 file changed, 50 insertions(+), 42 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index aab0be40d443..60344794579c 100644 --- a/drivers/net/tun.c +++ b

[RFC PATCH 0/2] Incorrect memory access when using TAP

2019-09-29 Thread Amadeusz Sławiński
hat seem logical to me it causes oops on null pointer, does network API free scoket automatically somewhere? * Maybe it is just simpler and more error proof to add some flag inside sock_alloc, so it knows that it can do SOCK_INODE call... Cheers, Amadeusz Amadeusz Sławiński (2): net: tap: Fix

[PATCH 2/3] ath10k: use size_t for len variables

2017-02-02 Thread Amadeusz Sławiński
cleanup to consolidate type used for len variables Signed-off-by: Amadeusz Sławiński --- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/debug.c| 49 +++--- drivers/net/wireless/ath/ath10k/spectral.c | 7 +++-- 3 files changed, 29

[PATCH 3/3] ath10k: fix comment

2017-02-02 Thread Amadeusz Sławiński
I wanted to take a look and it's apparently in other header Signed-off-by: Amadeusz Sławiński --- drivers/net/wireless/ath/ath10k/wmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h

[PATCH 1/3] ath10k: remove ath10k_vif_to_arvif()

2017-02-02 Thread Amadeusz Sławiński
it adds unnecessary level of indirection, while we just access structure field Signed-off-by: Amadeusz Sławiński --- drivers/net/wireless/ath/ath10k/mac.c | 68 +-- drivers/net/wireless/ath/ath10k/mac.h | 7 +--- drivers/net/wireless/ath/ath10k/p2p.c | 2

[PATCH 2/2] mac80211: use accessor functions to set sta->_flags

2017-01-24 Thread Amadeusz Sławiński
cleanup patch to make use of set_sta_flag()/clear_sta_flag() in places where we access sta->_flags Signed-off-by: Amadeusz Sławiński --- net/mac80211/sta_info.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_inf

[PATCH 1/2] mac80211: use helper function to access ieee802_1d_to_ac[]

2017-01-24 Thread Amadeusz Sławiński
cleanup patch to make use of ieee80211_ac_from_tid() to retrieve ac from ieee802_1d_to_ac[] Signed-off-by: Amadeusz Sławiński --- net/mac80211/rx.c | 2 +- net/mac80211/status.c | 2 +- net/mac80211/tx.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net