[dpdk-dev] [PATCH] crypto/scheduler: fix uninitialized capability structure

Zhang, Roy Fan roy.fan.zhang at intel.com
Wed Apr 19 17:40:31 CEST 2017


> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Wednesday, April 19, 2017 4:02 PM
> To: Zhang, Roy Fan <roy.fan.zhang at intel.com>
> Cc: dev at dpdk.org; De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
> Subject: [PATCH] crypto/scheduler: fix uninitialized capability structure
> 
> Capability information is updated as slaves are attached, but if this
> information is requested via rte_cryptodev_info_get() when no slaves have
> been attached, the structure would not be initialized, leading to a potential
> segmentation fault.
> 
> Therefore, the structure should be initialized with no capabilities at device
> creation.
> 
> Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations")
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>

Acked-by: Fan Zhang <roy.fan.zhang at intel.com>


More information about the dev mailing list