From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60562 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727824AbfHHLew (ORCPT ); Thu, 8 Aug 2019 07:34:52 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x78BXbm6096170 for ; Thu, 8 Aug 2019 07:34:51 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u8jq8gngw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 08 Aug 2019 07:34:51 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Aug 2019 12:34:49 +0100 Date: Thu, 8 Aug 2019 13:34:43 +0200 From: Heiko Carstens Subject: Re: [PATCH 1/2] s390/extmem: Use refcount_t for refcount References: <20190808071817.6595-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808071817.6595-1-hslester96@gmail.com> Message-Id: <20190808113443.GA4331@osiris> Sender: linux-s390-owner@vger.kernel.org List-ID: To: Chuhong Yuan Cc: Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 03:18:17PM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan > --- > arch/s390/mm/extmem.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) Applied, thanks.