From mboxrd@z Thu Jan 1 00:00:00 1970 From: kvalo@codeaurora.org (Kalle Valo) Date: Mon, 03 Apr 2017 14:41:08 +0300 Subject: [PATCH 16/16] drivers, net, intersil: convert request_context.refcount from atomic_t to refcount_t In-Reply-To: <1490691403-4016-17-git-send-email-elena.reshetova@intel.com> (Elena Reshetova's message of "Tue, 28 Mar 2017 11:56:43 +0300") References: <1490691403-4016-1-git-send-email-elena.reshetova@intel.com> <1490691403-4016-17-git-send-email-elena.reshetova@intel.com> Message-ID: <87zifxn2gb.fsf@kamboji.qca.qualcomm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Elena Reshetova writes: > 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 > Signed-off-by: Hans Liljestrand > Signed-off-by: Kees Cook > Signed-off-by: David Windsor > --- > drivers/net/wireless/intersil/orinoco/orinoco_usb.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) The prefix should be "orinoco_usb:", I'll fix that. -- Kalle Valo