Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4789430imm; Tue, 7 Aug 2018 07:23:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfIjTCcq60IhdA5k9+VLLYHJ3KjDjoWgOum5fKagT26BUbRQkV58UEioGzV1AURRDdGkhc9 X-Received: by 2002:a62:5543:: with SMTP id j64-v6mr22045031pfb.188.1533651826222; Tue, 07 Aug 2018 07:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533651826; cv=none; d=google.com; s=arc-20160816; b=uNi2fOGddY7Fnd0waYzPo6vPS+F/Vj8y9q5HoCHaE9ixtqNKwKcpJrrkRTuzWFR8A4 nc9nq9NFHT+nSHpdn/2Oqjs5/60Dis8h9CQR45x0X8/thjYvIOjcckZ5ws0mcvONHPrJ K2C825QUqe9nKvforjXz99U3EOvtoAMQVf40RZzJFDraRFgtt2haIW/TNRWpcVYjoqXa vHjZ5IhcwZppVWciajOW+jlmsh51+OsyIy7GYCycrp0OhTaBgLsqSSafEt2+ip4rtHBj x0E5oQbofflZ48ivuSDPO1GwDF+8dAH4qxwSDCz+Lw/Zx54AFgcFetjkJP20gLzWCBFd pR4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=VugsmVIkuRbAlr/WGJU89ydww9rKcY2cP2kkryOvLVs=; b=onXBsQmgIzlD/k40tCBpOv7iAqHHDc9vTr8Ih0FvQTiKmDbnJi10j7+FTJlp0ldpTt idlRD8J2U8nNhk33RRXSKZt6f9HDGoHbCLuTS3qF5FFPpgSm/8OLnrMZq8oXIXvXl8ll P1wnkdaxp/wsSjrtsZyYuYEk5JGv8TyzZP2lsGUd48zCeJ7XNn/aTo5buoy90JTaKg7Y kjjXwOeWxn/qQb23f4wL6IiFeLgvfqM8XzBmKkmWZ/Cy0xT8ntze4llNW3wy4zGhwjbk FcbsyONgy38gIG2gB5nD+svW/cyXQVIda9qrCyFrjft+h459U0Cs4/ffAG0LrlHStb5l ZkIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g65-v6si1538241pfc.36.2018.08.07.07.23.31; Tue, 07 Aug 2018 07:23:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389290AbeHGQgp (ORCPT + 99 others); Tue, 7 Aug 2018 12:36:45 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38600 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388569AbeHGQgo (ORCPT ); Tue, 7 Aug 2018 12:36:44 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w77EJ7Id115469 for ; Tue, 7 Aug 2018 10:22:10 -0400 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0b-001b2d01.pphosted.com with ESMTP id 2kqd2wr46u-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 07 Aug 2018 10:22:10 -0400 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Aug 2018 10:22:09 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 7 Aug 2018 10:22:06 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w77EM5Fs56819730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 7 Aug 2018 14:22:05 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BCD72AC064; Tue, 7 Aug 2018 10:22:38 -0400 (EDT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 870BBAC065; Tue, 7 Aug 2018 10:22:38 -0400 (EDT) Received: from bryants-mbp-4.rchland.ibm.com (unknown [9.10.79.147]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 7 Aug 2018 10:22:38 -0400 (EDT) Subject: Re: [PATCH] misc: ibmvsm: Fix wrong assignment of return code To: Michael Ellerman , "Bryant G. Ly" , gregkh@linuxfoundation.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <1533562260-11456-1-git-send-email-bryantly@linux.vnet.ibm.com> <87y3dibbt3.fsf@concordia.ellerman.id.au> From: "Bryant G. Ly" Date: Tue, 7 Aug 2018 09:22:04 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <87y3dibbt3.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18080714-0064-0000-0000-00000336B5B0 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009501; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01070655; UDB=6.00551084; IPR=6.00850027; MB=3.00022559; MTD=3.00000008; XFM=3.00000015; UTC=2018-08-07 14:22:08 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18080714-0065-0000-0000-00003A383E5B Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-07_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808070146 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/7/18 7:28 AM, Michael Ellerman wrote: > "Bryant G. Ly" writes: > >> From: "Bryant G. Ly" >> >> Currently the assignment is flipped and rc is always 0. > If you'd left rc uninitialised at the start of the function the compiler > would have caught it for you. > > And what is the consequence of the bug? Nothing, complete system crash, > subtle data corruption? The consequence would be that if the CRQ Registration failed the first time due to not enough resources, it would never try to reset and try again. If it fails due to any other error then it would just fail the sending of the crq init message, thus it would just wait for the client to init, which would never happen. We would also have a memory leak since in the error case DMA would never get un-mapped and the message queue never gets freed. > > Also this should be tagged: > > Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)") > > cheers > Yep, sorry I forgot to add the Fixes:.. -Bryant