hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/virt/kvm/vfio.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * VFIO-KVM bridge pseudo device
34 *
45 * Copyright (C) 2013 Red Hat, Inc. All rights reserved.
56 * Author: Alex Williamson <alex.williamson@redhat.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/errno.h>
....@@ -219,7 +216,7 @@
219216 }
220217 }
221218
222
- kvg = kzalloc(sizeof(*kvg), GFP_KERNEL);
219
+ kvg = kzalloc(sizeof(*kvg), GFP_KERNEL_ACCOUNT);
223220 if (!kvg) {
224221 mutex_unlock(&kv->lock);
225222 kvm_vfio_group_put_external_user(vfio_group);
....@@ -405,7 +402,7 @@
405402 if (tmp->ops == &kvm_vfio_ops)
406403 return -EBUSY;
407404
408
- kv = kzalloc(sizeof(*kv), GFP_KERNEL);
405
+ kv = kzalloc(sizeof(*kv), GFP_KERNEL_ACCOUNT);
409406 if (!kv)
410407 return -ENOMEM;
411408