Re: [PATCH] misc: rtsx: check the value returned from a function for errors before being used

2021-03-24 Thread Greg KH
On Wed, Mar 24, 2021 at 06:05:58PM +0800, Yang Li wrote: > Add missing return value check in pm_runtime_get disabling the > sensor. The issue is reported by coverity with the following error: > > Medium:Unchecked return value(CHECKED_RETURN) > CWE252: Value returned from a function is not checked

[PATCH] misc: rtsx: check the value returned from a function for errors before being used

2021-03-24 Thread Yang Li
Add missing return value check in pm_runtime_get disabling the sensor. The issue is reported by coverity with the following error: Medium:Unchecked return value(CHECKED_RETURN) CWE252: Value returned from a function is not checked for errors before being used. Calling "pm_runtime_get" without