svn commit: r288307 - head/sys/dev/nxge
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Sep 27 12:17:04 UTC 2015
Author: bz
Date: Sun Sep 27 12:17:03 2015
New Revision: 288307
URL: https://svnweb.freebsd.org/changeset/base/288307
Log:
Compare the correct variable to see if memory allocation succeeded.
I don't even want to know where the symbol "version" comes from.
Spotted by: reading kernel compile time log
MFC after: 2 weeks
Modified:
head/sys/dev/nxge/if_nxge.c
Modified: head/sys/dev/nxge/if_nxge.c
==============================================================================
--- head/sys/dev/nxge/if_nxge.c Sun Sep 27 09:15:54 2015 (r288306)
+++ head/sys/dev/nxge/if_nxge.c Sun Sep 27 12:17:03 2015 (r288307)
@@ -1457,7 +1457,7 @@ xge_ioctl_stats(xge_lldev_t *lldev, stru
case XGE_READ_VERSION:
info = xge_os_malloc(NULL, XGE_BUFFER_SIZE);
- if(version != NULL) {
+ if(info != NULL) {
strcpy(info, XGE_DRIVER_VERSION);
if(copyout(info, ifreqp->ifr_data, XGE_BUFFER_SIZE) == 0)
retValue = 0;
More information about the svn-src-head
mailing list