We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5aebd0 commit ba86cf8Copy full SHA for ba86cf8
fs/nfsd/filecache.c
@@ -634,8 +634,8 @@ nfsd_file_cache_init(void)
634
if (!nfsd_filecache_wq)
635
goto out;
636
637
- nfsd_file_hashtbl = kvcalloc(NFSD_FILE_HASH_SIZE,
638
- sizeof(*nfsd_file_hashtbl), GFP_KERNEL);
+ nfsd_file_hashtbl = kvzalloc(array_size(NFSD_FILE_HASH_SIZE,
+ sizeof(*nfsd_file_hashtbl)), GFP_KERNEL);
639
if (!nfsd_file_hashtbl) {
640
pr_err("nfsd: unable to allocate nfsd_file_hashtbl\n");
641
goto out_err;
0 commit comments