diff options
| author | Hui Su <[email protected]> | 2020-11-24 16:52:05 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2020-11-25 12:03:44 +0000 |
| commit | fdeb17c70c9ecae655378761accf5a26a55a33cf (patch) | |
| tree | 67592e638b795f71d5332a85fe2ad11f1d32b98c /drivers/usb/cdns3/cdns3-imx.c | |
| parent | Merge tag '5.10-rc5-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 (diff) | |
| download | kernel-fdeb17c70c9ecae655378761accf5a26a55a33cf.tar.gz kernel-fdeb17c70c9ecae655378761accf5a26a55a33cf.zip | |
trace: fix potenial dangerous pointer
The bdi_dev_name() returns a char [64], and
the __entry->name is a char [32].
It maybe dangerous to TP_printk("%s", __entry->name)
after the strncpy().
CC: [email protected]
Link: https://lore.kernel.org/r/20201124165205.GA23937@rlk
Acked-by: Steven Rostedt (VMware) <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Hui Su <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
