.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * VFIO-KVM bridge pseudo device |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2013 Red Hat, Inc. All rights reserved. |
---|
5 | 6 | * 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. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #include <linux/errno.h> |
---|
.. | .. |
---|
219 | 216 | } |
---|
220 | 217 | } |
---|
221 | 218 | |
---|
222 | | - kvg = kzalloc(sizeof(*kvg), GFP_KERNEL); |
---|
| 219 | + kvg = kzalloc(sizeof(*kvg), GFP_KERNEL_ACCOUNT); |
---|
223 | 220 | if (!kvg) { |
---|
224 | 221 | mutex_unlock(&kv->lock); |
---|
225 | 222 | kvm_vfio_group_put_external_user(vfio_group); |
---|
.. | .. |
---|
405 | 402 | if (tmp->ops == &kvm_vfio_ops) |
---|
406 | 403 | return -EBUSY; |
---|
407 | 404 | |
---|
408 | | - kv = kzalloc(sizeof(*kv), GFP_KERNEL); |
---|
| 405 | + kv = kzalloc(sizeof(*kv), GFP_KERNEL_ACCOUNT); |
---|
409 | 406 | if (!kv) |
---|
410 | 407 | return -ENOMEM; |
---|
411 | 408 | |
---|