Re: [PATCH net-next] wlcore: fix overlapping snprintf arguments in debugfs

2021-04-17 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc complains about undefined behavior in calling snprintf() > with the same buffer as input and output: > > drivers/net/wireless/ti/wl18xx/debugfs.c: In function > 'diversity_num_of_packets_per_ant_read': > drivers/net/wireless/ti/wl18xx/../wlco

Re: [PATCH net-next] wlcore: fix overlapping snprintf arguments in debugfs

2021-04-07 Thread Kalle Valo
Arnd Bergmann writes: > From: Arnd Bergmann > > gcc complains about undefined behavior in calling snprintf() > with the same buffer as input and output: > > drivers/net/wireless/ti/wl18xx/debugfs.c: In function > 'diversity_num_of_packets_per_ant_read': > drivers/net/wireless/ti/wl18xx/../wlcore