Re: [PATCH][next] afs: Use array3_size() helper in afs_extract_to_buf()

2020-06-15 Thread David Howells
Gustavo A. R. Silva wrote: > Use array3_size() helper instead of the open-coded version in > afs_extract_to_buf(). These sorts of multiplication factors need > to be wrapped in array3_size(). For afs_deliver_cb_callback(), this adds redundant checking, as does the one on the kmalloc() on the pre

[PATCH][next] afs: Use array3_size() helper in afs_extract_to_buf()

2020-06-15 Thread Gustavo A. R. Silva
Use array3_size() helper instead of the open-coded version in afs_extract_to_buf(). These sorts of multiplication factors need to be wrapped in array3_size(). This issue was found with the help of Coccinelle and, audited and fixed manually. Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/