Home
last modified time | relevance | path

Searched hist:"7 bba9e81" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/extcon/
H A Dextcon.h7bba9e81 Tue Apr 11 06:48:22 CDT 2023 Andy Shevchenko <andriy.shevchenko@linux.intel.com> extcon: Use unique number for the extcon device ID

The use of atomic variable is still racy when we do not control which
device has been unregistered and there is a (theoretical) possibility
of the overflow that may cause a duplicate extcon device ID number
to be allocated next time a device is registered.

Replace above mentioned approach by using IDA framework.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
H A Dextcon.c7bba9e81 Tue Apr 11 06:48:22 CDT 2023 Andy Shevchenko <andriy.shevchenko@linux.intel.com> extcon: Use unique number for the extcon device ID

The use of atomic variable is still racy when we do not control which
device has been unregistered and there is a (theoretical) possibility
of the overflow that may cause a duplicate extcon device ID number
to be allocated next time a device is registered.

Replace above mentioned approach by using IDA framework.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>