From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Date: Mon, 03 Apr 2017 11:41:08 +0000 Subject: Re: [PATCH 16/16] drivers, net, intersil: convert request_context.refcount from atomic_t to refcount Message-Id: <87zifxn2gb.fsf@kamboji.qca.qualcomm.com> List-Id: References: <1490691403-4016-1-git-send-email-elena.reshetova@intel.com> <1490691403-4016-17-git-send-email-elena.reshetova@intel.com> 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") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Elena Reshetova Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rdma@vger.kernel.org, linux-hams@vger.kernel.org, linux-ppp@vger.kernel.org, linux-wireless@vger.kernel.org, ganeshgr@chelsio.com, nbd@openwrt.org, blogic@openwrt.org, matthias.bgg@gmail.com, yishaih@mellanox.com, saeedm@mellanox.com, matanb@mellanox.com, leonro@mellanox.com, ajk@comnets.uni-bremen.de, paulus@samba.org, j@w1.fi, peterz@infradead.org, keescook@chromium.org, gregkh@linuxfoundation.org, Hans Liljestrand , David Windsor 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