[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140518.211319.776876380782689458.davem@davemloft.net>
Date: Sun, 18 May 2014 21:13:19 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: rickard_strandqvist@...ctrumdigital.se
Cc: isdn@...ux-pingi.de, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] isdn: hisax: l3ni1.c: Fix for possible null pointer
dereference
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
Date: Sat, 17 May 2014 19:19:40 +0200
> @@ -2064,8 +2064,12 @@ static int l3ni1_cmd_global(struct PStack *st, isdn_ctrl *ic)
> { free_invoke_id(st, id);
> return (-2);
> }
> - pc->prot.ni1.ll_id = ic->parm.ni1_io.ll_id; /* remember id */
> - pc->prot.ni1.proc = ic->parm.ni1_io.proc; /* and procedure */
> +
> + if (pc)
> + {
> + pc->prot.ni1.ll_id = ic->parm.ni1_io.ll_id; /* remember id */
> + pc->prot.ni1.proc = ic->parm.ni1_io.proc; /* and procedure */
> + }
Like I said for your other patch, you should fix this by putting these
assignments in the timeout > 0 code block.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists