Skip to contentSkip to conversation

mrvl: memset wrong struct when session clear

dpdk-dev [email protected] 1 participant 2 messages Mar 2, 2021 – Nov 26, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=646

            Bug ID: 646
           Summary: mrvl: memset wrong struct when session clear
           Product: DPDK
           Version: 20.08
          Hardware: ARM
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: cryptodev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

In function mrvl_crypto_pmd_sym_session_clear, when memset mrvl_crypto_session object, pass wrong ptr which point to rte_cryptodev_sym_session. original code:
memset(sess, 0, sizeof(struct mrvl_crypto_session));

It will cause a error message when do session clear:
set_sym_session_private_data: "Set private data for driver 0 not allowed"

I think the first parameter must be :
memset(mrvl_sess, 0, sizeof(struct mrvl_crypto_session));

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=646

Thomas Monjalon ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=03e73e8572

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.