1-Wire bus drivers fixes

Non critical (old issues) fixes:
 1. Fix possible buffer overflow in W1 thermal driver sysfs interfasce,
 2. Drop duplicated device put when attaching a slave device failed,
    which could lead to memory corruption.
 -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCgAuFiEE3dJiKD0RGyM7briowTdm5oaLg9cFAmlr0G0QHGtyemtAa2Vy
 bmVsLm9yZwAKCRDBN2bmhouD12j5D/4i2L7Ll/BwDaSRmF7dTT2fa5LitUKWrvHZ
 abUDcYi9Ei7Nj/B4nAqjR4jXhtd1Hfa4KEJChtful/y1eV9I3vQ4Ct96H9UtskQ7
 pxOg5Z2hLBdGFmIA+GMvzs1a2+EYTXu4Om48gok3GSjQoqVIoqQRVb9s6m13iYJp
 0tE//xJpx679Gmej33a5bYcEhI4Ilpn0W3vbB88zNjYF7eBZvJgbyUUPJyvwCnuf
 dCrpKpI/WGF5ufF7E7p9IFjEAqxuatxInaMqDG0qXlxlG+EnkKQG3oElORf1ht+B
 Tl7XoztGz/99o4gVx6n8YY6KkmG+eY7fKANnoP0xPMXsQBjdntf4wfK4uxrPYesN
 bebVIYxHM1c2stHcK35afSDx/1+8fpAGoN111E1qEwCNsM43iCY5CLHUTvbQalVg
 fwruUKj8wBDz4Q7jQ3MgILUq7swRXk2aCBxVmcg94cJlKs7laZAuObdvNWcImCBQ
 kYL8ssXNGuMgLZsbTU4cP2KWaghBto/fkplRkgbg6BM/29f+sWx2wzzLOosQUPQS
 Xq2cX0kNtTuQQ1n/5hU+zZJnRgK7+ED0sqZHmDl4fCeUQNrjm+hACND7BZkBj/MY
 GY1kKD7bLm5iRjt5XUbq6JP9bmD0dv4wUkjaznVj2vypZOhZJGybjUMmetV/BUsD
 IUPof9OGlg==
 =zL5e
 -----END PGP SIGNATURE-----

Merge tag 'w1-drv-6.20' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux-w1 into char-misc-linus

1-Wire bus drivers fixes

Non critical (old issues) fixes:
1. Fix possible buffer overflow in W1 thermal driver sysfs interfasce,
2. Drop duplicated device put when attaching a slave device failed,
   which could lead to memory corruption.

* tag 'w1-drv-6.20' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux-w1:
  w1: fix redundant counter decrement in w1_attach_slave_device()
  w1: therm: Fix off-by-one buffer overflow in alarms_store
This commit is contained in:
Greg Kroah-Hartman 2026-01-20 10:31:56 +01:00
commit 88da5f4b46
2 changed files with 20 additions and 44 deletions