aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2024-05-02 09:35:43 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2024-05-02 09:35:43 +1000
commite27020b4440096ff7235425c0995d3994c70d625 (patch)
tree8f1df151aac2981d9d33eeb95763efecfd3ab59a
parentc0c7d74b5e0e8fb3540f2eae3366367e4e2db461 (diff)
parent9dd12ed95c2d06a29a5d289c6e65589c577ef8ca (diff)
downloadlinux-next-history-e27020b4440096ff7235425c0995d3994c70d625.tar.gz
Merge branch 'for-next/pstore' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
Notice: this object is not reachable from any branch.
Notice: this object is not reachable from any branch.
-rw-r--r--fs/pstore/blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/blk.c b/fs/pstore/blk.c
index de8cf5d75f34d5..65b2473e22ff9c 100644
--- a/fs/pstore/blk.c
+++ b/fs/pstore/blk.c
@@ -241,7 +241,7 @@ err:
/* get information of pstore/blk */
int pstore_blk_get_config(struct pstore_blk_config *info)
{
- strncpy(info->device, blkdev, 80);
+ strscpy(info->device, blkdev);
info->max_reason = max_reason;
info->kmsg_size = check_size(kmsg_size, 4096);
info->pmsg_size = check_size(pmsg_size, 4096);