proc_sysctl.c (cb636b3e372bac984ac54ab7b39bef560bbcf7d5) | proc_sysctl.c (425b9c7f51c98443db71ad679893725483b21196) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * /proc/sys support 4 */ 5#include <linux/init.h> 6#include <linux/sysctl.h> 7#include <linux/poll.h> 8#include <linux/proc_fs.h> --- 1319 unchanged lines hidden (view full) --- 1328 struct ctl_table *entry; 1329 struct ctl_node *node; 1330 int nr_entries = 0; 1331 1332 for (entry = table; entry->procname; entry++) 1333 nr_entries++; 1334 1335 header = kzalloc(sizeof(struct ctl_table_header) + | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * /proc/sys support 4 */ 5#include <linux/init.h> 6#include <linux/sysctl.h> 7#include <linux/poll.h> 8#include <linux/proc_fs.h> --- 1319 unchanged lines hidden (view full) --- 1328 struct ctl_table *entry; 1329 struct ctl_node *node; 1330 int nr_entries = 0; 1331 1332 for (entry = table; entry->procname; entry++) 1333 nr_entries++; 1334 1335 header = kzalloc(sizeof(struct ctl_table_header) + |
1336 sizeof(struct ctl_node)*nr_entries, GFP_KERNEL); | 1336 sizeof(struct ctl_node)*nr_entries, GFP_KERNEL_ACCOUNT); |
1337 if (!header) 1338 return NULL; 1339 1340 node = (struct ctl_node *)(header + 1); 1341 init_header(header, root, set, node, table); 1342 if (sysctl_check_table(path, table)) 1343 goto fail; 1344 --- 577 unchanged lines hidden --- | 1337 if (!header) 1338 return NULL; 1339 1340 node = (struct ctl_node *)(header + 1); 1341 init_header(header, root, set, node, table); 1342 if (sysctl_check_table(path, table)) 1343 goto fail; 1344 --- 577 unchanged lines hidden --- |