]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pci1xxxx: prevent signed integer overflow
authorWolfram Sang <wsa@kernel.org>
Wed, 28 Sep 2022 20:12:14 +0000 (22:12 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 1 Oct 2022 22:59:24 +0000 (00:59 +0200)
commit54b4c3590211fa7be172b5de9b7bc76d80a4631f
treec39b810d25ab8c810a11ff83034d5b5e81ae61bc
parent31512cd3f6c66f13a67b10cf3e030b27f552e181
i2c: pci1xxxx: prevent signed integer overflow

Some constants need 'UL' markings, otherwise they are shifted into the
sign bit.

Fixes: 2b9e7bb1f5a7 ("i2c: microchip: pci1xxxx: Add driver for I2C host controller in multifunction endpoint of pci1xxxx switch")
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mchp-pci1xxxx.c