Re: [dpdk-dev] [PATCH] cryptodev: fix NULL pointer dereference

2017-08-01 Thread De Lara Guarch, Pablo
Hi Thomas, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Monday, July 31, 2017 4:23 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; Gonzalez Monroy, Sergio > ; Doherty, Declan > > Subject: Re: [dpdk-dev

Re: [dpdk-dev] [PATCH] cryptodev: fix NULL pointer dereference

2017-07-31 Thread Thomas Monjalon
31/07/2017 14:32, Sergio Gonzalez Monroy: > On 31/07/2017 03:30, Pablo de Lara wrote: > > --- a/lib/librte_cryptodev/rte_cryptodev.c > > +++ b/lib/librte_cryptodev/rte_cryptodev.c > > @@ -1404,6 +1404,12 @@ rte_cryptodev_allocate_driver(const struct > > rte_driver *drv) > > struct cryptodev_dr

Re: [dpdk-dev] [PATCH] cryptodev: fix NULL pointer dereference

2017-07-31 Thread Sergio Gonzalez Monroy
On 31/07/2017 03:30, Pablo de Lara wrote: When registering a crypto driver, if memory allocation fails, application should exit and do not allow a NULL pointer dereference. Coverity issue: 158645 Fixes: 7a364faef185 ("cryptodev: remove crypto device type enumeration") Signed-off-by: Pablo de L

[dpdk-dev] [PATCH] cryptodev: fix NULL pointer dereference

2017-07-31 Thread Pablo de Lara
When registering a crypto driver, if memory allocation fails, application should exit and do not allow a NULL pointer dereference. Coverity issue: 158645 Fixes: 7a364faef185 ("cryptodev: remove crypto device type enumeration") Signed-off-by: Pablo de Lara --- lib/librte_cryptodev/rte_cryptodev