summaryrefslogtreecommitdiff
path: root/arch/sh/drivers/dma/dma-api.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2023-06-20 13:54:53 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2023-06-20 13:54:53 +1000
commitcb06626bb4327b4ea0c40f036fc85a0d455ece22 (patch)
treef8e54d5b387566549b328d1aa742b6e3adc6e5b0 /arch/sh/drivers/dma/dma-api.c
parent813d0f22facfefe148303b201a98a065a8040427 (diff)
parenta5a319ec2c2236bb96d147c16196d2f1f3799301 (diff)
Merge branch 'for-next/kspp' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
Diffstat (limited to 'arch/sh/drivers/dma/dma-api.c')
-rw-r--r--arch/sh/drivers/dma/dma-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c
index ab9170494dcc..89cd4a3b4cca 100644
--- a/arch/sh/drivers/dma/dma-api.c
+++ b/arch/sh/drivers/dma/dma-api.c
@@ -198,7 +198,7 @@ int request_dma(unsigned int chan, const char *dev_id)
if (atomic_xchg(&channel->busy, 1))
return -EBUSY;
- strlcpy(channel->dev_id, dev_id, sizeof(channel->dev_id));
+ strscpy(channel->dev_id, dev_id, sizeof(channel->dev_id));
if (info->ops->request) {
result = info->ops->request(channel);