Coverity CID 1120: Avoid NULL deref.
This commit is contained in:
parent
b374745c63
commit
fc1743863a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fw_port.h,v 1.10 2006/04/14 21:39:50 christos Exp $ */
|
||||
/* $NetBSD: fw_port.h,v 1.11 2006/04/14 21:47:04 christos Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2004 KIYOHARA Takashi
|
||||
* All rights reserved.
|
||||
|
@ -934,6 +934,7 @@ struct fwbus_attach_args {
|
|||
#define SBP_DEVICE_FREEZE(d, x) scsipi_periph_freeze((d)->periph, (x));
|
||||
#define SBP_DEVICE_THAW(d, x) \
|
||||
do { \
|
||||
if ((d)->periph) \
|
||||
scsipi_periph_thaw((d)->periph, (x)); \
|
||||
/* XXXX */ \
|
||||
scsipi_channel_thaw(&(d)->target->sbp->sc_channel, 0); \
|
||||
|
|
Loading…
Reference in New Issue