Julien Grall
5b902d6f97
device property: Don't overwrite addr when failing in device_get_mac_address
...
The function device_get_mac_address is trying different property names
in order to get the mac address. To check the return value, the variable
addr (which contain the buffer pass by the caller) will be re-used. This
means that if the previous property is not found, the next property will
be read using a NULL buffer.
Therefore it's only possible to retrieve the mac if node contains a
property "mac-address". Fix it by using a temporary buffer for the
return value.
This has been introduced by commit 4c96b7dc0d
"Add a matching set of device_ functions for determining mac/phy"
Signed-off-by: Julien Grall <[email protected] >
Cc: Jeremy Linton <[email protected] >
Cc: David S. Miller <[email protected] >
Reviewed-by: Jeremy Linton <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2015-09-08 13:40:23 -07:00
..
power
Power management and ACPI material for v4.3-rc1
2015-09-01 19:45:46 -07:00
regmap
regmap: regcache-rbtree: Clean new present bits on present bitmap resize
2015-07-29 15:10:13 +01:00
attribute_container.c
attribute_container: fix missing blank lines after declarations
2015-03-25 14:35:09 +01:00
base.h
driver core: correct device's shutdown order
2015-08-05 17:07:19 -07:00
bus.c
driver-core: add asynchronous probing support for drivers
2015-05-20 00:25:24 -07:00
cacheinfo.c
Merge 4.1-rc7 into driver-core-next
2015-06-08 10:19:40 -07:00
class.c
drivers: base: class: Add a blank line after declarations
2015-03-25 14:36:19 +01:00
component.c
container.c
core.c
Power management and ACPI material for v4.3-rc1
2015-09-01 19:45:46 -07:00
cpu.c
cpu: Remove bogus __ref annotation of cpu_subsys_online()
2015-08-05 15:18:26 -07:00
dd.c
Power management and ACPI material for v4.3-rc1
2015-09-01 19:45:46 -07:00
devcoredump.c
devres.c
devres: fix devres_get()
2015-08-05 15:11:48 -07:00
devtmpfs.c
VFS: assorted weird filesystems: d_inode() annotations
2015-04-15 15:06:58 -04:00
dma-coherent.c
dma-contiguous.c
dma-mapping.c
drivers: base: dma-mapping: Erase blank space after pointer
2015-03-25 14:36:19 +01:00
driver.c
driver core: add missing blank line after declaration
2015-03-25 14:36:30 +01:00
firmware.c
firmware_class.c
firmware: fix wrong memory deallocation in fw_add_devm_name()
2015-08-05 15:18:26 -07:00
hypervisor.c
init.c
drivers: of/base: move of_init to driver_init
2015-05-26 19:55:56 -07:00
isa.c
Kconfig
Makefile
drivers/base: Add MSI domain support for non-PCI devices
2015-07-30 00:14:38 +02:00
map.c
drivers: base: map: Use kmalloc_array instead of kmalloc
2015-03-25 14:35:08 +01:00
memory.c
mm, hotplug: fix concurrent memory hot-add deadlock
2015-04-14 16:49:00 -07:00
module.c
node.c
mm: meminit: initialise a subset of struct pages if CONFIG_DEFERRED_STRUCT_PAGE_INIT is set
2015-06-30 19:44:56 -07:00
pinctrl.c
platform-msi.c
drivers/base: Add MSI domain support for non-PCI devices
2015-07-30 00:14:38 +02:00
platform.c
drivercore: Fix unregistration path of platform devices
2015-08-25 11:29:57 -05:00
property.c
device property: Don't overwrite addr when failing in device_get_mac_address
2015-09-08 13:40:23 -07:00
soc.c
drivers/base: use tabs where possible in code indentation
2015-03-25 14:37:35 +01:00
syscore.c
topology.c
sched/topology: Rename topology_thread_cpumask() to topology_sibling_cpumask()
2015-05-27 15:22:15 +02:00
transport_class.c