]> git.baikalelectronics.ru Git - kernel.git/commit
hostap: convert hostap_cmd_queue.usecnt from atomic_t to refcount_t
authorElena Reshetova <elena.reshetova@intel.com>
Tue, 28 Mar 2017 08:56:42 +0000 (11:56 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 22 May 2017 15:23:43 +0000 (18:23 +0300)
commit896a89bf28cff67dfcf3503003973cd776335174
tree7a6b48dba5514bb743be96023f287a6b226869bc
parent86909853b5d938fb61f249b3aaafd9bc609639f4
hostap: convert hostap_cmd_queue.usecnt from atomic_t to refcount_t

refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.

Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Hans Liljestrand <ishkamiel@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David Windsor <dwindsor@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/hostap/hostap_hw.c
drivers/net/wireless/intersil/hostap/hostap_wlan.h