Message ID | 20220529153456.4183738-1-cgxu519@mykernel.net (mailing list archive) |
---|---|
Headers | show |
Series | fix a common error of while loop condition in error path | expand |
On Sun, May 29, 2022 at 11:34:50PM +0800, Chengguang Xu wrote: > There is a common error of while loop condition which misses > the case '(--i) == 0' in error path. This patch series just > tries to fix it in several driver's code. > > Note: I'm not specialist of specific drivers so just compile tested > for the fixes. These are all correct. Thank you. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> regards, dan carpenter
On Sun, 29 May 2022 23:34:50 +0800, Chengguang Xu wrote: > There is a common error of while loop condition which misses > the case '(--i) == 0' in error path. This patch series just > tries to fix it in several driver's code. > > Note: I'm not specialist of specific drivers so just compile tested > for the fixes. > > [...] Applied to 5.19/scsi-fixes, thanks! [3/6] scsi: ipr: fix missing/incorrect resource cleanup in error case https://git.kernel.org/mkp/scsi/c/d64c49191132 [5/6] scsi: pmcraid: fix missing resource cleanup in error case https://git.kernel.org/mkp/scsi/c/ec1e8adcbdf6