[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190310.105650.162175260208324347.davem@davemloft.net>
Date: Sun, 10 Mar 2019 10:56:50 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: kjlu@....edu
Cc: pakki001@....edu, isdn@...ux-pingi.de, baijiaju1990@...il.com,
gustavo@...eddedor.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] isdn: hfcpci: fix potential NULL pointer dereference
From: Kangjie Lu <kjlu@....edu>
Date: Fri, 8 Mar 2019 23:46:04 -0600
> In case ioremap fails, the fix reports an error and returns.
>
> Signed-off-by: Kangjie Lu <kjlu@....edu>
First, you shouldn't print the information log message if this fails.
Second you are leaking hc->hw.fifos, you have to clean up any resources
allocated up until this point if you fail.
Powered by blists - more mailing lists