Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp425901rdb; Thu, 5 Oct 2023 09:44:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtWM474585/53w9oz8L2pwmgTpHO5/+PQnDurXfrPS/nRNRUcdOcDhd9ovD4vv1/aj6AYk X-Received: by 2002:a05:6a21:788f:b0:135:110c:c6e1 with SMTP id bf15-20020a056a21788f00b00135110cc6e1mr6686795pzc.7.1696524274346; Thu, 05 Oct 2023 09:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696524274; cv=none; d=google.com; s=arc-20160816; b=ySGy6F2WcoQG8Pv6ll3twdzW2Y5iHO01jS8q7PcKkQQTKNFb94/wjRPzhxE5j+0znl /sGKE5b3mi5uO4ySWAag0BzLdZWXQ7dcjURPBBsQB7rgoqeZk//Tx9sgs9BmQaYlS6TA bl0loTyg3s0MFNVYBDM4dO72TqTNvsmP+Ku57mIwyf0sJDpmwKXEyzeOqAP5QyJ0twi0 74E826LgODPYnkiNvm0O1loSn07sp7Zi8KX9wPJ4UgNWi8hv18PmaP64W2DD2ED+w0tv hUK3YvWpxAGoYSDlQ3POjsfe6pHJvXlD07zdo9KwVj+f6KPx0Ua4nIHyTG2v3BpDi81B rUIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/SvxsxPLgknsUyoedy05iuyDbiMbvNzgf2Sdg8OQ5vc=; fh=udu1GxSprFqYSgHLa3/Hi3gEr9W98ZFWEzhMrQB7OzA=; b=p9uQd4wsBAHEpQR4iAbyGrr0VNxpeosg98QwT7pHG0hYNZ+esfWokz31ucxigU+PVa bNHy0KkSMyYNhLTMWBklnLj7rKTtpNssolbqQBWDERrpHC8lo6WMH2uwFmNzKN/IhEkZ rr9Zy7tn3I7DzrrbfDi+8aF9jfPE0cchiCXgUz6H7r3GpxzgR0M0ZWss4D4K0UpxSjsc G0pIDoQ9SaMe1EsnMTqPswWq5rv0yg/VIODbaWeeswECuoD+d2J8aJzQ5GFiVZSep8zb lDAhCvTFNwmE5xiOXGdvBpHv7IYwSw5bwUr6HL4fCFyaNxMUI53OVzp9LetymqF+a4/F k84A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=kpwyEuQT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l18-20020a170902e2d200b001b9d180fd9asi1728952plc.121.2023.10.05.09.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:44:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=kpwyEuQT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 77EC08307DAA; Thu, 5 Oct 2023 09:44:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233489AbjJEQnV (ORCPT + 99 others); Thu, 5 Oct 2023 12:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbjJEQlk (ORCPT ); Thu, 5 Oct 2023 12:41:40 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31FC219AD; Thu, 5 Oct 2023 09:26:33 -0700 (PDT) Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 395GPped012144; Thu, 5 Oct 2023 16:26:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=/SvxsxPLgknsUyoedy05iuyDbiMbvNzgf2Sdg8OQ5vc=; b=kpwyEuQTNKHl4i9kI2Uao574UivqcsmalwdAnCqwzptqBg2UL45chZ2oB2k+nUgP3RQH UW4Yu2kpHM0av7YpoDXnxGY0PsigcYs26kXqBsH8qF4lRjGvioUUTA4wca0irtc372R6 4bM1p0VVTxI3XWWK8N3Dxz660GfF5uuotyudq9eYAa+NqCXQVUvcp40TRhqftqBvR4vH hMEC1kI4IYNAhPIAwIKFX2ShpLgfIw1nLEdH/hEnWbDd/7wDTtkBq+qQ7JlWEYjxCGu1 4jin10fH47g6UvdCxU3rj5cDJZGl95vCnMzqdrbYkz18ABz/ZKu34Bbxbf1BUaJ6BLUe 0g== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tj0ndg1gm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 16:26:30 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 395EU1hb007447; Thu, 5 Oct 2023 15:13:16 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3teygm4gd2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 15:13:16 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 395FDDvo41222626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Oct 2023 15:13:13 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0F2152004B; Thu, 5 Oct 2023 15:13:13 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 929142004D; Thu, 5 Oct 2023 15:13:12 +0000 (GMT) Received: from [9.179.14.29] (unknown [9.179.14.29]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 5 Oct 2023 15:13:12 +0000 (GMT) Message-ID: Date: Thu, 5 Oct 2023 17:12:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] s390/cio: Fix a memleak in css_alloc_subchannel To: Dinghao Liu Cc: Vineeth Vijayan , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Halil Pasic , Julian Wiedmann , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230921071412.13806-1-dinghao.liu@zju.edu.cn> Content-Language: en-US From: Peter Oberparleiter In-Reply-To: <20230921071412.13806-1-dinghao.liu@zju.edu.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: aNR7iEgwscrZ82l9-nm77TT6FXdyvJGN X-Proofpoint-ORIG-GUID: aNR7iEgwscrZ82l9-nm77TT6FXdyvJGN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-05_11,2023-10-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1011 mlxscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=633 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310050128 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:44:18 -0700 (PDT) On 21.09.2023 09:14, Dinghao Liu wrote: > When dma_set_coherent_mask() fails, sch->lock has not been > freed, which is allocated in css_sch_create_locks(), leading > to a memleak. > > Fixes: 4520a91a976e ("s390/cio: use dma helpers for setting masks") > Signed-off-by: Dinghao Liu Looks good to me. Reviewed-by: Peter Oberparleiter -- Peter Oberparleiter Linux on IBM Z Development - IBM Germany R&D