cxl/vphb.c: Use phb pointer after NULL check
authorManinder Singh <maninder1.s@samsung.com>
Mon, 29 Jun 2015 10:35:11 +0000 (16:05 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Jul 2015 10:24:34 +0000 (20:24 +1000)
commit14f21189df33bc972455d6a0ed875aa68718d7fc
tree7df8aa74414d6d9a2dce0436d4c3af4907ea3433
parentd8ea782b56d9d2c46a47b3231cfd16ecfb538c60
cxl/vphb.c: Use phb pointer after NULL check

static Anlaysis detected below error:-
(error) Possible null pointer dereference: phb

So, Use phb after NULL check.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/vphb.c