Skip to content
Commit c7cec489 authored by Abram Early's avatar Abram Early Committed by Maureen Helm
Browse files

drivers: winc1500: Fix signed/unsigned comparison



The value from socket() was directly assigned to offload_context, which
was treated as a unsigned integer when compared. This prevented the
following if statement from catching any errors, leading to random RAM
access. This is fixed by using an intermediate with the same type as the
return value, which is then assigned to offload_context after error
checking.

Signed-off-by: default avatarAbram Early <abram.early@gmail.com>
parent d7468bf8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment