X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=Documentation%2Fcredentials.txt;h=995baf379c076770962a84268fde19b527caa0be;hb=9fa424a40186ef3e8a6573aa1c1dd46c94c66012;hp=a2db352870036ba062aa177ce450d0d491f7d8c8;hpb=db8cc27b804f89e8fd5f9d5385161956a777c471;p=karo-tx-linux.git diff --git a/Documentation/credentials.txt b/Documentation/credentials.txt index a2db35287003..995baf379c07 100644 --- a/Documentation/credentials.txt +++ b/Documentation/credentials.txt @@ -417,6 +417,9 @@ reference on them using: This does all the RCU magic inside of it. The caller must call put_cred() on the credentials so obtained when they're finished with. + [*] Note: The result of __task_cred() should not be passed directly to + get_cred() as this may race with commit_cred(). + There are a couple of convenience functions to access bits of another task's credentials, hiding the RCU magic from the caller: