From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 567A4C32774 for ; Tue, 23 Aug 2022 06:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240045AbiHWGU6 (ORCPT ); Tue, 23 Aug 2022 02:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239296AbiHWGU5 (ORCPT ); Tue, 23 Aug 2022 02:20:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CBE0491D7; Mon, 22 Aug 2022 23:20:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 35AD5B816BF; Tue, 23 Aug 2022 06:20:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 456F7C433C1; Tue, 23 Aug 2022 06:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661235653; bh=K4n5U8Ku8HdJgTN/+cafpwXcsbx9WYqlkA5qGQNUk8w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a2dMCy9BuMRVGC0u33aaAWpR5K5P0p0w5LGsJJeRosSl1qNC2lptfFKn53Wymdn1F OL8EvLmh9uwAyro8Of1ZS1GmLCfh8Osg2eRzSZvZHYVWYE66iHk5Qbzok05bl/c1XO 3RXd4n3PJe1/P2CXdnD58eB97D4/bxDkwDgqhwbE= Date: Tue, 23 Aug 2022 08:20:50 +0200 From: Greg KH To: lily Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, jirislaby@kernel.org Subject: Re: [PATCH v1] drivers/tty/serial: check the return value of uart_port_check() Message-ID: References: <20220823055739.1451419-1-floridsleeves@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220823055739.1451419-1-floridsleeves@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org On Mon, Aug 22, 2022 at 10:57:39PM -0700, lily wrote: > uart_port_check() can return NULL pointer. It can? How will that happen? > Check its return value > before dereference it. How do you trigger this issue, and how was this change you made tested? thanks, greg k-h