orinoco_usb: convert request_context.refcount from atomic_t to refcount_t
authorElena Reshetova <elena.reshetova@intel.com>
Tue, 28 Mar 2017 08:56:43 +0000 (11:56 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 22 May 2017 15:24:18 +0000 (18:24 +0300)
commit0aeffa7041d84976432e903cb04e8d7b0edf31ed
treeb24cce6cd5a24a24a3728302b02583a53846a0ef
parent552aa585faff19ceead7aa840d4ce11830ce34a9
orinoco_usb: convert request_context.refcount 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/orinoco/orinoco_usb.c