summaryrefslogtreecommitdiffstats
path: root/kernel/fail_function.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2026-04-20 13:41:28 +0200
committerPetr Mladek <pmladek@suse.com>2026-04-20 13:41:28 +0200
commit3e9e952bb3139ad1e08f3e1960239c2988ab90c9 (patch)
treeee27c846e06879bc062388cf948086caeda676cf /kernel/fail_function.c
parentaea645c02f1acc36088618667e086b62d8f83e92 (diff)
parent8901ac9d2c7eb8ed7ae5e749bf13ecb3b6062488 (diff)
downloadlinux-3e9e952bb3139ad1e08f3e1960239c2988ab90c9.tar.gz
linux-3e9e952bb3139ad1e08f3e1960239c2988ab90c9.zip
Merge branch 'for-7.1-printf-kunit-build' into for-linus
Diffstat (limited to 'kernel/fail_function.c')
-rw-r--r--kernel/fail_function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fail_function.c b/kernel/fail_function.c
index d971a0189319..2eaf55005f49 100644
--- a/kernel/fail_function.c
+++ b/kernel/fail_function.c
@@ -57,7 +57,7 @@ static struct fei_attr *fei_attr_new(const char *sym, unsigned long addr)
{
struct fei_attr *attr;
- attr = kzalloc(sizeof(*attr), GFP_KERNEL);
+ attr = kzalloc_obj(*attr);
if (attr) {
attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL);
if (!attr->kp.symbol_name) {