On 11/12/2018 11:44 PM, Anoob Joseph wrote: > Coverity Issue: 323492 > > If the length of string pointed by 'name' is equal to or greater than > the sizeof cptvf->dev_name string, the resultant string will not be > null terminated. Using strlcpy would make sure the string would always > be null terminated. > > Fixes: 0dc1cffa4d33 ("crypto/octeontx: add hardware init routine") > > Coverity Issue: 323489 > > Fix null pointer dereferencing > > Fixes: bfe2ae495ee2 ("crypto/octeontx: add PMD skeleton") > > Coverity Issue: 323486 > > The function otx_cpt_get_resource() would be setting the pointer > 'instance'. In case of error, 'instance' would be set to NULL, and > returns rte_errno. If rte_errno when 'instance' is set to NULL, it can > lead to NULL pointer dereferencing. > > Fixes: 0961348fdf52 ("crypto/octeontx: add queue pair functions") > > Signed-off-by: Ankur Dwivedi <ankur.dwiv...@caviumnetworks.com> > Signed-off-by: Anoob Joseph <anoob.jos...@caviumnetworks.com> > --- > v2: > * Squashed three commits to one > Applied to dpdk-next-crypto
Thanks