Re: [PATCH] ath11k: Correctly check errors for calls to debugfs_create_dir()

2020-10-01 Thread Kalle Valo
Alex Dewar wrote: > debugfs_create_dir() returns an ERR_PTR in case of error, but never a > null pointer. There are a number of places where error-checking code can > accordingly be simplified. > > Addresses-Coverity: CID 1497150: Memory - illegal accesses (USE_AFTER_FREE) > Addresses-Coverity:

[PATCH] ath11k: Correctly check errors for calls to debugfs_create_dir()

2020-09-27 Thread Alex Dewar
debugfs_create_dir() returns an ERR_PTR in case of error, but never a null pointer. There are a number of places where error-checking code can accordingly be simplified. Addresses-Coverity: CID 1497150: Memory - illegal accesses (USE_AFTER_FREE) Addresses-Coverity: CID 1497158: Memory - illegal ac