Received: by 10.223.164.202 with SMTP id h10csp894999wrb; Thu, 23 Nov 2017 07:56:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMa9xR5I9ffd0v7QpW5iV+vbZv3LbDG+BMSvLQdiNPby9RwgghL7A8EJJF1Xiy5+CsL3lFxn X-Received: by 10.159.254.7 with SMTP id r7mr1670196pls.168.1511452594279; Thu, 23 Nov 2017 07:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511452594; cv=none; d=google.com; s=arc-20160816; b=A6cnTa2b4lVP84lc917DONbMspdz7AHFcMGnayMnHI5f+pn7t2eyw8NII/p0hpm5ps KumL58b0H06TM2ewIRspcv4z+WiJORGiBg5L0EjoYmx0tkGj7E5Q2tCYkOh9r7L3v8yk YeddjIcRMDbJ2akp4/MLQj6zn/5fxamipHXrCsyFW43aSCSGRCMiYO9MQUJHGM2W91t3 lAwZq5UA5i7fnf9ZHREv52afOHsl7qgR9NkAssRwaQvC3M9/hNRvD/syJ0hdNJoh+Ry2 0gCd2RkjLlhxx6TyzPZoNnXcvm7W+LHNQ1zGiS2onbGjWs6OKCP9FGPdMj7YpSK2Gr9M 7oEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=0zJL8lM8i/w8zv0mVayNUJ0rm0qfkEIDdY38Afz4eSE=; b=hIU7qTcEZ/4+2Kb+FoGZNWUzq5ca2cqoAUACG38MOMof2l4jRAuVYwONO/29bQEJCj nuWRVgqb4hvPLhJMMBDLXr5SoyphlHCa6kLCz7/ROr8nklut0AZ22YWfdNCMTrTnw9Ll HmNumMeowL1tnLJT0X1UufVXzFwoJzLMboVGdUgys2XFkSvBV7VioFc+lLz+oseJ00Tu n+BL1F5U2Y4hTZegXXfYpUmhGcS0TSg6drouq3jAvM9CNku61AU/NABhfhbAF6noQegx 718A2P6ZwsAddYCz1326qmM+WNEyr6iWkEMXTvTmHT24teALSGRjdaQN45i55i86A6EC HuHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fN7i0/P1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j61si10132299plb.213.2017.11.23.07.56.22; Thu, 23 Nov 2017 07:56:34 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fN7i0/P1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752912AbdKWPzl (ORCPT + 76 others); Thu, 23 Nov 2017 10:55:41 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34559 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbdKWPzk (ORCPT ); Thu, 23 Nov 2017 10:55:40 -0500 Received: by mail-pg0-f68.google.com with SMTP id 4so14183203pge.1 for ; Thu, 23 Nov 2017 07:55:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0zJL8lM8i/w8zv0mVayNUJ0rm0qfkEIDdY38Afz4eSE=; b=fN7i0/P1cNo34ZsEhEbbeWgM2wxMonVjJ5usKmOpMs3DXFTCu8iJMvbrFxFbSO07x5 vikvdRvUjIlqNha2M++iTT+EvtK5YGZusnr8IeEb6g3Ga9azvxfH2n7ICHdqj7RXTLIp jUIXJGN7oVkDwZQQsInrbhIThsyWAZKXW5a3/zxMtT1TzBNI55ccC8p3acf++qE/cxva 8bgJ96d4HrMFfdCBj7C1FiG1wY27IQ3TFv3EwqJit4wZRX+MnLq6/5j1j1dnF/EfuD5d 65FgbBMmTTg/vH5IqvVSzEN4ocGPiPR+3TsVp1kFFAawgc9pXPl5mWKg4HlDLiuhsYUs JuQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0zJL8lM8i/w8zv0mVayNUJ0rm0qfkEIDdY38Afz4eSE=; b=m7p1c8T6qFpC6f9sNQDGdjTJ3vAZKAsqgLENUk4DnNXITcA87xTASBtV0g0Ilz1lJJ aJjxGZO3Y2v8EBInqfQYaDXQKzLuMjFKZ9olz1wyz2v4s5qR+/rcpyI05ffx2PaypdQc aRtfLQlo1zJGagkAbZi4/Jhw62vAnTaUlCzKMELFR7s23LvzHt2onThUX4XmXFyexA/T 9SCUMqEOmp71hhCgs8wVDj1ZOkGYIBzWPz+KvjODabwNLtYAgn/kH0t5lt7iur1XJn/w yLw0KJNzzA66IpKMF46FcEDGKBcJ0GWCtlk+cIdvJbZa21C1SINbyE7568C4xYG7tvVQ inAg== X-Gm-Message-State: AJaThX78Vgn+znQlTAkkgN8TLD6W/1QcKBJNJbq/CVJkeLpNtzVAKZFQ fYrt8UKMq4nkF78SqUENdWc= X-Received: by 10.99.126.11 with SMTP id z11mr24892390pgc.281.1511452539909; Thu, 23 Nov 2017 07:55:39 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id a87sm35747617pfg.159.2017.11.23.07.55.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Nov 2017 07:55:39 -0800 (PST) From: Arvind Yadav To: myungjoo.ham@samsung.com, cw00.choi@samsung.com, wens@csie.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Handle return value and error checking of platform_get_irq Date: Thu, 23 Nov 2017 21:25:28 +0530 Message-Id: <1511452530-16858-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. platform_get_irq() can fail here and we must check its return value. Arvind Yadav (2): [PATCH 1/2] extcon: adc-jack: Fix platform_get_irq's error checking [PATCH 2/2] extcon: axp288:: Handle return value of platform_get_irq drivers/extcon/extcon-adc-jack.c | 2 +- drivers/extcon/extcon-axp288.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.7.4 From 1584960401564451948@xxx Fri Nov 24 15:07:07 +0000 2017 X-GM-THRID: 1584960401564451948 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread