Commit 545d8ae7 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Steffen Klassert
Browse files

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: ffdb5211 ("xfrm: Auto-load xfrm offload modules")
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 5efec5c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -317,7 +317,7 @@ retry:

	if (!type && try_load) {
		request_module("xfrm-offload-%d-%d", family, proto);
		try_load = 0;
		try_load = false;
		goto retry;
	}