s390/pci: fix potential NULL pointer dereference in dma_free_seg_table()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Dec 2012 15:15:00 +0000 (16:15 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 3 Dec 2012 15:44:11 +0000 (10:44 -0500)
commitbafff1743f2b1bda24daba29c59f755aa2d505b7
tree8c8a71dbcce99beaf8a93773491e34e38318a3f1
parent4118fee78dabb138b548bd42694f3437a8830b60
s390/pci: fix potential NULL pointer dereference in dma_free_seg_table()

The dereference to 'zdev' should be moved below the NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_dma.c