.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Silicon Labs C2 port core Linux support |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2007 Rodolfo Giometti <giometti@linux.it> |
---|
5 | 6 | * Copyright (c) 2007 Eurotech S.p.A. <info@eurotech.it> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify it |
---|
8 | | - * under the terms of the GNU General Public License version 2 as published by |
---|
9 | | - * the Free Software Foundation |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #include <linux/module.h> |
---|
.. | .. |
---|
926 | 923 | } |
---|
927 | 924 | dev_set_drvdata(c2dev->dev, c2dev); |
---|
928 | 925 | |
---|
929 | | - strncpy(c2dev->name, name, C2PORT_NAME_LEN); |
---|
| 926 | + strncpy(c2dev->name, name, C2PORT_NAME_LEN - 1); |
---|
930 | 927 | c2dev->ops = ops; |
---|
931 | 928 | mutex_init(&c2dev->mutex); |
---|
932 | 929 | |
---|