Skip to content

[PATCH v1] linux-generic: crypto: don't leak sessions if creation fails#25

Closed
lumag wants to merge 1 commit intoOpenDataPlane:masterfrom
lumag:crypto-fix-create
Closed

[PATCH v1] linux-generic: crypto: don't leak sessions if creation fails#25
lumag wants to merge 1 commit intoOpenDataPlane:masterfrom
lumag:crypto-fix-create

Conversation

@lumag
Copy link
Copy Markdown

@lumag lumag commented May 9, 2017

We should free allocated session in odp_crypto_session_create() error
paths, so that the session is not leaked.

Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org

We should free allocated session in odp_crypto_session_create() error
paths, so that the session is not leaked.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
@muvarov muvarov changed the title linux-generic: crypto: don't leak sessions if creation fails [PATCH v1] linux-generic: crypto: don't leak sessions if creation fails May 9, 2017
@codecov-io
Copy link
Copy Markdown

codecov-io commented May 10, 2017

Codecov Report

Merging #25 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
- Coverage   78.32%   78.28%   -0.05%     
==========================================
  Files         172      172              
  Lines       31462    31468       +6     
==========================================
- Hits        24644    24634      -10     
- Misses       6818     6834      +16
Impacted Files Coverage Δ
platform/linux-generic/odp_timer_wheel.c 84.28% <0%> (-2.62%) ⬇️
test/linux-generic/pktio_ipc/pktio_ipc2.c 66.66% <0%> (-0.86%) ⬇️
platform/linux-generic/pktio/ipc.c 76.67% <0%> (-0.32%) ⬇️
platform/linux-generic/_ishm.c 65.59% <0%> (-0.31%) ⬇️
test/common_plat/performance/odp_crypto.c 79.45% <0%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79ba737...64cfe90. Read the comment docs.

Copy link
Copy Markdown
Contributor

@Bill-Fischofer-Linaro Bill-Fischofer-Linaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Review by acclamation.

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented May 12, 2017

Meged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants