- return __sock_create(family, type, protocol, res, 1);
+ static struct lock_class_key sk_lock_internal_key;
+ int ret;
+ ret = __sock_create(family, type, protocol, res, 1);
+ if (!ret)
+ lockdep_set_class(&(*res)->sk->sk_lock.slock,
+ &sk_lock_internal_key);
+ return ret;