Date: Fri, 30 Aug 2019 00:40:08 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351621 - head/sys/dev/xdma Message-ID: <201908300040.x7U0e8aQ077356@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Fri Aug 30 00:40:08 2019 New Revision: 351621 URL: https://svnweb.freebsd.org/changeset/base/351621 Log: xdma: avoid NULL deref in error case Reported by: Dr Silvio Cesare of InfoSect MFC after: 3 days Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/xdma/xdma_sg.c Modified: head/sys/dev/xdma/xdma_sg.c ============================================================================== --- head/sys/dev/xdma/xdma_sg.c Fri Aug 30 00:38:16 2019 (r351620) +++ head/sys/dev/xdma/xdma_sg.c Fri Aug 30 00:40:08 2019 (r351621) @@ -186,8 +186,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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908300040.x7U0e8aQ077356>