Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 17:57:10 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347844 - stable/11/sys/dev/mlx5/mlx5_core
Message-ID:  <201905161757.x4GHvAV6022417@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu May 16 17:57:09 2019
New Revision: 347844
URL: https://svnweb.freebsd.org/changeset/base/347844

Log:
  Fix minor compile issue after MFC r347288.
  
  This is a direct commit.
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c

Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c	Thu May 16 17:53:36 2019	(r347843)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c	Thu May 16 17:57:09 2019	(r347844)
@@ -295,7 +295,7 @@ mlx5_fwdump_ioctl(struct cdev *dev, u_long cmd, caddr_
 		fake_fw.name = "umlx_fw_up";
 		fake_fw.datasize = fu->img_fw_data_len;
 		fake_fw.version = 1;
-		fake_fw.data = (void *)kmem_malloc(fu->img_fw_data_len,
+		fake_fw.data = (void *)kmem_malloc(kmem_arena, fu->img_fw_data_len,
 		    M_WAITOK);
 		if (fake_fw.data == NULL) {
 			error = ENOMEM;
@@ -305,7 +305,7 @@ mlx5_fwdump_ioctl(struct cdev *dev, u_long cmd, caddr_
 		    fu->img_fw_data_len);
 		if (error == 0)
 			error = -mlx5_firmware_flash(mdev, &fake_fw);
-		kmem_free((vm_offset_t)fake_fw.data, fu->img_fw_data_len);
+		kmem_free(kmem_arena, (vm_offset_t)fake_fw.data, fu->img_fw_data_len);
 		break;
 	default:
 		error = ENOTTY;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905161757.x4GHvAV6022417>