| commit | e1d2fa843c7aee08747d61ffceb0d868df9b5756 | [log] [tgz] |
|---|---|---|
| author | Haiyue Wang <haiyuewa@163.com> | Thu Dec 04 15:06:16 2025 +0800 |
| committer | Jagpal S Gill <paligill@gmail.com> | Fri Dec 19 17:18:43 2025 +0000 |
| tree | 3a410da2b56f336b3f8ccb41bfad537a67695ff1 | |
| parent | 37490639ab033f13d456babeb3de9df30d6c532d [diff] |
common: i2c: Fix 'close()' may close invalid fd If 'I2C_SLAVE_FORCE' fails, the "close()" will be called twice by the "open()" and "~I2C()", and the "close()" doesn't check the 'fd' value valid or not. And "close()" should not be a valid const member function, chang it to mark the 'fd' invalid if "::close()" is called. Change-Id: Ibeb923c4e3ea400c2de630ff7223df56c349a941 Signed-off-by: Haiyue Wang <haiyuewa@163.com>
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
meson buildninja -C buildTo clean the repository run rm -r build.