Skip to content
Commit cb0dd0cc authored by Johann Fischer's avatar Johann Fischer Committed by Anas Nashif
Browse files

usb: function_eem: fix eem_read_cb



This patch prevents eem_read_cb from trying to allocate a lot of memory.

It may happen that EEM payload size is zero, the eem_read_cb then tries
to allocate a buffer which is 0xfffc bytes large and luckily blocks.

Signed-off-by: default avatarJohann Fischer <j.fischer@phytec.de>
parent 4317a181
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment