Thread (3 messages) flat view 3 messages, 3 authors, 2016-08-26

Re: [PATCH] net: hns: dereference ppe_cb->ppe_common_cb if it is non-null

From: Yisen Zhuang <hidden>
Date: 2016-08-26 00:42:44
Also in: lkml


在 2016/8/25 14:51, Colin King 写道:
From: Colin Ian King <redacted>

ppe_cb->ppe_common_cb is being dereferenced before a null check is
being made on it.  If ppe_cb->ppe_common_cb is null then we end up
with a null pointer dereference when assigning dsaf_dev.  Fix this
by moving the initialisation of dsaf_dev once we know
ppe_cb->ppe_common_cb is OK to dereference.

Signed-off-by: Colin Ian King <redacted>
Acked-by: Yisen Zhuang <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help