]> git.karo-electronics.de Git - karo-tx-linux.git/commit
userns: Properly print bluetooth socket uids
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 4 Oct 2012 03:32:17 +0000 (20:32 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 4 Oct 2012 03:48:11 +0000 (20:48 -0700)
commit554573017b85761a14e892748fd551e1069e8d84
tree8b2e946d73c14b35003cfde376e89e1ef73505a4
parent3a494318b14b1bc0f59d2d6ce84c505c74d82d2a
userns: Properly print bluetooth socket uids

With user namespace support enabled building bluetooth generated the warning.
net/bluetooth/af_bluetooth.c: In function ‘bt_seq_show’:
net/bluetooth/af_bluetooth.c:598:7: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘kuid_t’ [-Wformat]

Convert sock_i_uid from a kuid_t to a uid_t before printing, to avoid
this problem.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Masatake YAMATO <yamato@redhat.com>
Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
net/bluetooth/af_bluetooth.c