diff --git a/sys/dev/slice/disklabel.c b/sys/dev/slice/disklabel.c index 2934745ee2fc..31bd6d1538ba 100644 --- a/sys/dev/slice/disklabel.c +++ b/sys/dev/slice/disklabel.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: disklabel.c,v 1.3 1998/04/22 19:27:51 julian Exp $ + * $Id: disklabel.c,v 1.4 1998/05/06 22:14:31 julian Exp $ */ #define BAD144 @@ -932,5 +932,9 @@ RR; pd = sdp->pd; slice = pd->slice_down; blkoff += sdp->offset; - return (*slice->handler_down->dump)(slice->private_down, blkoff, blkcnt); + if(slice->handler_down->dump) { + return (*slice->handler_down->dump)(slice->private_down, + blkoff, blkcnt); + } + return(ENXIO); } diff --git a/sys/dev/slice/mbr.c b/sys/dev/slice/mbr.c index 08e8b3596ec6..8efd3f3efb77 100644 --- a/sys/dev/slice/mbr.c +++ b/sys/dev/slice/mbr.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mbr.c,v 1.3 1998/04/22 19:27:51 julian Exp $ + * $Id: mbr.c,v 1.4 1998/05/06 22:14:32 julian Exp $ */ #include @@ -884,5 +884,9 @@ RR; pd = sdp->pd; slice = pd->slice_down; blkoff += sdp->offset; - return (*slice->handler_down->dump)(slice->private_down, blkoff, blkcnt); + if(slice->handler_down->dump) { + return (*slice->handler_down->dump)(slice->private_down, + blkoff, blkcnt); + } + return(ENXIO); }