Module Name: src Committed By: msaitoh Date: Mon Jun 29 09:24:07 UTC 2020
Modified Files: src/sys/dev/i2c: sdtemp.c Log Message: 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(). To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/i2c/sdtemp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.