[lkml]   [2019]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] isdn: hfcpci: fix potential NULL pointer dereference
From: Kangjie Lu <>
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 <>

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.

 \ /
  Last update: 2019-03-10 18:57    [W:0.091 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site