]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: initialize dynamic sysfs attributes for lockdep
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 19 Jul 2012 07:04:45 +0000 (07:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jul 2012 17:48:08 +0000 (10:48 -0700)
commitac9b217268d14476a316d13afb7389e3d6c3d67a
tree9e13743e64eca444fc9828b72c9fcbdfa062c028
parentb354e411044ab2b3e5869942395fabc33fb9428f
sfc: initialize dynamic sysfs attributes for lockdep

Dynamically allocated sysfs attributes must be initialized using
sysfs_attr_init(), otherwise lockdep complains:
BUG: key <address> not in .data!

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/mcdi_mon.c