diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 57acd907d662..bfc98024bd50 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -643,8 +643,9 @@ cam_periph_invalidate(struct cam_periph *periph) CAM_DEBUG(periph->path, CAM_DEBUG_INFO, ("Periph invalidated\n")); if ((periph->flags & CAM_PERIPH_ANNOUNCED) && !rebooting) { struct sbuf sb; + char buffer[160]; - sbuf_new(&sb, NULL, 160, SBUF_FIXEDLEN); + sbuf_new(&sb, buffer, 160, SBUF_FIXEDLEN); xpt_denounce_periph_sbuf(periph, &sb); sbuf_finish(&sb); sbuf_putbuf(&sb);