From: Javier Martinez Canillas <javier@dowhile0.org>
Date: Wed, 15 Feb 2012 10:58:54 +0000 (+0100)
Subject: security: struct security_operations kerneldoc fix
X-Git-Tag: firefly_0821_release~3680^2~2815^2~72
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fbe74e361c6586cdd996bc2805033999dd469e99;p=firefly-linux-kernel-4.4.55.git

security: struct security_operations kerneldoc fix

unix_may_send hook has the prototype:

int (*unix_may_send) (struct socket *sock, struct socket *other)

so the documentation is wrongly referring to the second argument as @sock.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---

diff --git a/include/linux/security.h b/include/linux/security.h
index 83c18e8c846d..c8949385e56e 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -812,7 +812,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
  *	Check permissions before connecting or sending datagrams from @sock to
  *	@other.
  *	@sock contains the socket structure.
- *	@sock contains the peer socket structure.
+ *	@other contains the peer socket structure.
  *	Return 0 if permission is granted.
  *
  * The @unix_stream_connect and @unix_may_send hooks were necessary because