[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJb+kEmFoTXCKh=xSfCas7B=oQP1p8vnn5eoa=zn54FRXOOntg@mail.gmail.com>
Date: Mon, 30 Sep 2024 01:40:14 +0300
From: Okan Tümüklü <okantumukluu@...il.com>
To: shuah@...nel.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, Mickaël Salaün <mic@...ikod.net>,
Shuah Khan <skhan@...uxfoundation.org>, Kees Cook <keescook@...omium.org>
Subject: update core.c
1:The control flow was simplified by using else if statements instead of
goto structure.
2:Error conditions are handled more clearly.
3:The device_unlock call at the end of the function is guaranteed in all
cases.
Github request : https://github.com/torvalds/linux/pull/967
Content of type "text/html" skipped
View attachment "core.c" of type "text/x-csrc" (25036 bytes)
View attachment "new_core.c" of type "text/x-csrc" (25037 bytes)
View attachment "test.c" of type "text/x-csrc" (518 bytes)
View attachment "changes.patch" of type "text/x-patch" (219 bytes)
Powered by blists - more mailing lists