svn commit: r351678 - stable/12/sys/dev/xdma
Ed Maste
emaste at FreeBSD.org
Mon Sep 2 00:36:27 UTC 2019
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);
}
More information about the svn-src-all
mailing list