Skip to content

Commit fe33147

Browse files
alessdavem330
authored andcommitted
net-caif: Added missing lock validator constants
CAIF is using "xxx-AF_MAX" strings for the lock validator. It should use its own strings. Signed-off-by: Alex Lorca <alex.lorca@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a8b690f commit fe33147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/core/sock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static const char *const af_family_key_strings[AF_MAX+1] = {
156156
"sk_lock-27" , "sk_lock-28" , "sk_lock-AF_CAN" ,
157157
"sk_lock-AF_TIPC" , "sk_lock-AF_BLUETOOTH", "sk_lock-IUCV" ,
158158
"sk_lock-AF_RXRPC" , "sk_lock-AF_ISDN" , "sk_lock-AF_PHONET" ,
159-
"sk_lock-AF_IEEE802154",
159+
"sk_lock-AF_IEEE802154", "sk_lock-AF_CAIF" ,
160160
"sk_lock-AF_MAX"
161161
};
162162
static const char *const af_family_slock_key_strings[AF_MAX+1] = {
@@ -172,7 +172,7 @@ static const char *const af_family_slock_key_strings[AF_MAX+1] = {
172172
"slock-27" , "slock-28" , "slock-AF_CAN" ,
173173
"slock-AF_TIPC" , "slock-AF_BLUETOOTH", "slock-AF_IUCV" ,
174174
"slock-AF_RXRPC" , "slock-AF_ISDN" , "slock-AF_PHONET" ,
175-
"slock-AF_IEEE802154",
175+
"slock-AF_IEEE802154", "slock-AF_CAIF" ,
176176
"slock-AF_MAX"
177177
};
178178
static const char *const af_family_clock_key_strings[AF_MAX+1] = {
@@ -188,7 +188,7 @@ static const char *const af_family_clock_key_strings[AF_MAX+1] = {
188188
"clock-27" , "clock-28" , "clock-AF_CAN" ,
189189
"clock-AF_TIPC" , "clock-AF_BLUETOOTH", "clock-AF_IUCV" ,
190190
"clock-AF_RXRPC" , "clock-AF_ISDN" , "clock-AF_PHONET" ,
191-
"clock-AF_IEEE802154",
191+
"clock-AF_IEEE802154", "clock-AF_CAIF" ,
192192
"clock-AF_MAX"
193193
};
194194

0 commit comments

Comments
 (0)