AF_MAX
#define PF_MAX AF_MAX
#define NPROTO AF_MAX
if (f->val >= AF_MAX)
static struct lock_class_key af_family_keys[AF_MAX];
static struct lock_class_key af_family_kern_keys[AF_MAX];
static struct lock_class_key af_family_slock_keys[AF_MAX];
static struct lock_class_key af_family_kern_slock_keys[AF_MAX];
static const char *const af_family_key_strings[AF_MAX+1] = {
static const char *const af_family_slock_key_strings[AF_MAX+1] = {
static const char *const af_family_clock_key_strings[AF_MAX+1] = {
static const char *const af_family_kern_key_strings[AF_MAX+1] = {
static const char *const af_family_kern_slock_key_strings[AF_MAX+1] = {
static const char *const af_family_kern_clock_key_strings[AF_MAX+1] = {
static const char *const af_family_rlock_key_strings[AF_MAX+1] = {
static const char *const af_family_wlock_key_strings[AF_MAX+1] = {
static const char *const af_family_elock_key_strings[AF_MAX+1] = {
static struct lock_class_key af_callback_keys[AF_MAX];
static struct lock_class_key af_rlock_keys[AF_MAX];
static struct lock_class_key af_wlock_keys[AF_MAX];
static struct lock_class_key af_elock_keys[AF_MAX];
static struct lock_class_key af_kern_callback_keys[AF_MAX];
static const struct sock_diag_handler __rcu *sock_diag_handlers[AF_MAX];
if (family >= AF_MAX)
if (family >= AF_MAX)
if (req->sdiag_family >= AF_MAX)
req->sdiag_family = array_index_nospec(req->sdiag_family, AF_MAX);
AA_BUG(family >= AF_MAX);
#define PF_MAX AF_MAX
{ AF_MAX, 0, 0, -EAFNOSUPPORT, 0 },