Author: emaste Date: Mon Sep 2 00:36:26 2019 New Revision: 351678 URL: https://svnweb.freebsd.org/changeset/base/351678
Log: MFC r351621: xdma: avoid NULL deref in error case Reported by: Dr Silvio Cesare of InfoSect Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/dev/xdma/xdma_sg.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/xdma/xdma_sg.c ============================================================================== --- stable/12/sys/dev/xdma/xdma_sg.c Mon Sep 2 00:31:05 2019 (r351677) +++ stable/12/sys/dev/xdma/xdma_sg.c Mon Sep 2 00:36:26 2019 (r351678) @@ -183,8 +183,7 @@ xchan_bufs_alloc(xdma_channel_t *xchan) xdma = xchan->xdma; if (xdma == NULL) { - device_printf(xdma->dev, - "%s: Channel was not allocated properly.\n", __func__); + printf("%s: Channel was not allocated properly.\n", __func__); return (-1); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"