]> git.baikalelectronics.ru Git - kernel.git/commit
device property: Add ETH_ALEN check, update comments.
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 19 Aug 2015 16:46:42 +0000 (11:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 21:36:25 +0000 (14:36 -0700)
commitcfff9461f41324ca2ef3986d22c6451b41c2e83a
treeb02f63ac4753c1b56296de90dca2e000169e0ff5
parent29c4120bcb44c449f9380d34453ae4b3a736d9d0
device property: Add ETH_ALEN check, update comments.

This patch adds MAC address length check back into
the device_get_mac_addr() function before calling
is_valid_ether_addr() similar to the way the OF
routine does it.

Update the comments for the two new functions.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/base/property.c