From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941995AbdEYIis (ORCPT ); Thu, 25 May 2017 04:38:48 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:33836 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756687AbdEYIhm (ORCPT ); Thu, 25 May 2017 04:37:42 -0400 From: Bartosz Golaszewski To: Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/3] gpio: check the return value of irq_alloc_generic_chip() Date: Thu, 25 May 2017 10:37:35 +0200 Message-Id: <1495701458-12444-1-git-send-email-brgl@bgdev.pl> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While hacking on some irq devres stuff I noticed that the return value of irq_alloc_generic_chip() is not being checked in a couple GPIO drivers. Those routines can fail, so check it and bail out if they do. Bartosz Golaszewski (3): gpio: pch: check the return value of irq_alloc_generic_chip() gpio: sta2x11: check the return value of irq_alloc_generic_chip() gpio: ml-ioh: check the return value of irq_alloc_generic_chip() drivers/gpio/gpio-ml-ioh.c | 16 +++++++++++++--- drivers/gpio/gpio-pch.c | 15 ++++++++++++--- drivers/gpio/gpio-sta2x11.c | 12 ++++++++++-- 3 files changed, 35 insertions(+), 8 deletions(-) -- 2.9.3