linux/drivers/staging
Alok Tiwari a59371f96b staging: nvec: Fix incorrect null termination of battery manufacturer
[ Upstream commit a8934352ba ]

The battery manufacturer string was incorrectly null terminated using
bat_model instead of bat_manu. This could result in an unintended
write to the wrong field and potentially incorrect behavior.

fixe the issue by correctly null terminating the bat_manu string.

Fixes: 32890b9830 ("Staging: initial version of the nvec driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250719080755.3954373-1-alok.a.tiwari@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:04:56 +02:00
..
axis-fifo staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:21:22 +02:00
board staging: board: Fix uninitialized spinlock when attaching genpd 2021-07-21 11:22:15 +02:00
emxx_udc staging: emxx_udc: Add checks for dma_alloc_coherent() 2023-03-11 13:55:34 +01:00
fbtft staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() 2025-08-15 12:04:54 +02:00
fieldbus staging: fieldbus: Fix the error handling path in anybuss_host_common_probe() 2022-04-22 16:48:31 +02:00
gdm724x net: vlan: introduce skb_vlan_eth_hdr() 2023-12-20 17:00:16 +01:00
greybus greybus: arche-ctrl: move device table to its right location 2024-06-12 11:03:35 +02:00
iio staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:07:30 +01:00
ks7010 staging: ks7010: disable bh on tx_dev_lock 2024-08-29 17:30:30 +02:00
media media: rkvdec: Fix frame size enumeration 2025-06-27 11:07:08 +01:00
most i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
nvec staging: nvec: Fix incorrect null termination of battery manufacturer 2025-08-15 12:04:56 +02:00
octeon staging: octeon: Fix return type of cvm_oct_xmit and cvm_oct_xmit_pow 2022-09-24 13:07:31 +02:00
olpc_dcon i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
pi433 staging: pi433: fix memory leak with using debugfs_lookup() 2023-03-11 13:55:36 +01:00
qlge net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
r8188eu drivers: staging: r8188eu: Fix sleep-in-atomic-context bug in rtw_join_timeout_handler 2022-12-31 13:32:38 +01:00
rtl8192e Revert "staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE" 2023-06-14 11:15:34 +02:00
rtl8192u staging: rtl8192u: Fix use after free in ieee80211_rx() 2022-12-31 13:32:42 +01:00
rtl8712 staging: rtl8712: fix race condition 2023-09-06 21:27:01 +01:00
rtl8723bs staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() 2025-07-06 10:58:01 +02:00
rts5208 staging: rts5208: spi.c: fix codestyle error in dynamic debug code 2022-06-06 07:53:49 +02:00
sm750fb Staging driver changes for 6.1-rc1 2022-10-08 09:19:24 -07:00
vc04_services staging: vchiq_arm: Make vchiq_shutdown never fail 2025-08-15 12:04:46 +02:00
vme_user staging: vme_user: added bound check to geoid 2024-10-17 15:22:17 +02:00
vt6655 staging: vt6655: fix some erroneous memory clean-up loops 2022-09-24 13:05:24 +02:00
vt6656 wifi: mac80211: return a beacon for a specific link 2022-06-20 12:57:08 +02:00
wlan-ng timers: Get rid of del_singleshot_timer_sync() 2024-05-17 11:56:12 +02:00
Kconfig Here's the main clk pull request for this merge window. We have some 2022-10-08 10:06:48 -07:00
Makefile Here's the main clk pull request for this merge window. We have some 2022-10-08 10:06:48 -07:00