//snip
>> >+int __rte_experimental
>> >+rte_cryptodev_sym_session_set_private_data(
>> >+                                   struct rte_cryptodev_sym_session
>> *sess,
>> >+                                   void *data,
>> >+                                   uint16_t size)
>> >+{
>> >+   uint16_t off_set = sizeof(void *) * nb_drivers;
>> >+   uint8_t *private_data_present = (uint8_t *)sess + off_set;
>>
>> [Shally]  I was going through this in context of crypto event adapter and 
>> realize
>> probably it is safer to set priv_data_size after (sess == NULL) check.
>> Same is applicable in get_private_data().
>[Abhinandan] I guess you are pointing *private_data_present* which is 
>calculated prior, it will not be used if the sess is NULL.
>
Oh. Ya . sorry I missed that.

//snip

Thanks
Shally

Reply via email to