re: kernel/locking/lockdep.c: convert hash tables to hlists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Andrew Morton,

The patch 680a50c9271b: "kernel/locking/lockdep.c: convert hash
tables to hlists" from Feb 4, 2016, leads to the following static
checker warning:

	kernel/locking/lockdep.c:3933 lockdep_free_key_range()
	warn: 'head' can't be NULL.

kernel/locking/lockdep.c
  3928          /*
  3929           * Unhash all classes that were created by this module:
  3930           */
  3931          for (i = 0; i < CLASSHASH_SIZE; i++) {
  3932                  head = classhash_table + i;
  3933                  if (!head)

classhash_table is an array.

  3934                          continue;
  3935                  hlist_for_each_entry_rcu(class, head, hash_entry) {
  3936                          if (within(class->key, start, size))
  3937                                  zap_class(class);
  3938                          else if (within(class->name, start, size))
  3939                                  zap_class(class);
  3940                  }
  3941          }

Also:
kernel/locking/lockdep.c:3990 lockdep_reset_lock() warn: 'head' can't be NULL.


regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux