--- - branch: MAIN date: Mon Jun 29 09:24:07 UTC 2020 files: - new: '1.38' old: '1.37' path: src/sys/dev/i2c/sdtemp.c pathrev: src/sys/dev/i2c/sdtemp.c@1.38 type: modified id: 20200629T092407Z.741ba35d04f6d24c2ca4b0b8c5914c128d5111a2 log: |2 Check the return value of iic_acquire_bus(). This function may fail. One of the case is driver's detaching phase on shutdown. mutex_tryenter() might fail and return with EBUSY. To avoid calling iic_release_bus() without taking lock, check the return value of iic_acquire_bus(). module: src subject: 'CVS commit: src/sys/dev/i2c' unixtime: '1593422647' user: msaitoh