Skip to content

Commit 545d8ae

Browse files
GustavoARSilvaklassert
authored andcommitted
xfrm: fix boolean assignment in xfrm_get_type_offload
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Fixes: ffdb521 ("xfrm: Auto-load xfrm offload modules") Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
1 parent 5efec5c commit 545d8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/xfrm/xfrm_state.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ xfrm_get_type_offload(u8 proto, unsigned short family, bool try_load)
317317

318318
if (!type && try_load) {
319319
request_module("xfrm-offload-%d-%d", family, proto);
320-
try_load = 0;
320+
try_load = false;
321321
goto retry;
322322
}
323323

0 commit comments

Comments
 (0)