mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 02:00:43 -04:00
Merge branch 'net-string-format-safety-updates'
Simon Horman says: ==================== net: String format safety updates This series addresses string format safety issues that are flagged by tooling in files touched by recent patches. I do not believe that any of these issues are bugs. Rather, I am providing these updates as I think there is a value in addressing such warnings so real problems stand out. v1: https://lore.kernel.org/20241011-string-thing-v1-0-acc506568033@kernel.org ==================== Link: https://patch.msgid.link/20241014-string-thing-v2-0-b9b29625060a@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -1106,7 +1106,7 @@ static int ksz_ptp_msg_irq_setup(struct ksz_port *port, u8 n)
|
||||
ptpmsg_irq->port = port;
|
||||
ptpmsg_irq->ts_reg = ops->get_port_addr(port->num, ts_reg[n]);
|
||||
|
||||
snprintf(ptpmsg_irq->name, sizeof(ptpmsg_irq->name), name[n]);
|
||||
strscpy(ptpmsg_irq->name, name[n]);
|
||||
|
||||
ptpmsg_irq->num = irq_find_mapping(port->ptpirq.domain, n);
|
||||
if (ptpmsg_irq->num < 0)
|
||||
|
||||
@@ -578,7 +578,7 @@ static int txgbe_clock_register(struct txgbe *txgbe)
|
||||
if (IS_ERR(clk))
|
||||
return PTR_ERR(clk);
|
||||
|
||||
clock = clkdev_create(clk, NULL, clk_name);
|
||||
clock = clkdev_create(clk, NULL, "%s", clk_name);
|
||||
if (!clock) {
|
||||
clk_unregister(clk);
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user