From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760963AbcINJG3 (ORCPT ); Wed, 14 Sep 2016 05:06:29 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:33048 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755494AbcINJGK (ORCPT ); Wed, 14 Sep 2016 05:06:10 -0400 MIME-Version: 1.0 In-Reply-To: <1473823964-27402-1-git-send-email-linux@roeck-us.net> References: <1473823964-27402-1-git-send-email-linux@roeck-us.net> From: Linus Walleij Date: Wed, 14 Sep 2016 11:06:08 +0200 Message-ID: Subject: Re: [PATCH] driver-core: platform: Catch errors from calls to irq_get_irq_data To: Guenter Roeck Cc: Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Vladimir Zapolskiy Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 14, 2016 at 5:32 AM, Guenter Roeck wrote: > irq_get_irq_data() can return NULL, which results in a nasty crash. > Check its return value before passing it on to irqd_set_trigger_type(). > > Signed-off-by: Guenter Roeck Reviewed-by: Linus Walleij Should probably be tagged for stable. Yours, Linus Walleij