All of lore.kernel.org
 help / color / mirror / Atom feed
* re: kernel/locking/lockdep.c: convert hash tables to hlists
@ 2016-02-04 11:57 Dan Carpenter
  2016-02-04 18:50 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2016-02-04 11:57 UTC (permalink / raw)
  To: kernel-janitors

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-04 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 11:57 kernel/locking/lockdep.c: convert hash tables to hlists Dan Carpenter
2016-02-04 18:50 ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.