Re: [PATCH][next] regmap-irq: Fix dereference of a potentially null d->virt_buf

2021-04-07 Thread Mark Brown
On Tue, 6 Apr 2021 17:40:02 +0100, Colin King wrote: > The clean up of struct d can potentiallly index into a null array > d->virt_buf causing errorenous pointer dereferencing issues on > kfree calls. Fix this by adding a null check on d->virt_buf before > attempting to traverse the array to kfree

[PATCH][next] regmap-irq: Fix dereference of a potentially null d->virt_buf

2021-04-06 Thread Colin King
From: Colin Ian King The clean up of struct d can potentiallly index into a null array d->virt_buf causing errorenous pointer dereferencing issues on kfree calls. Fix this by adding a null check on d->virt_buf before attempting to traverse the array to kfree the objects. Addresses-Coverity: ("D