diff options
author | Allen Hubbe <Allen.Hubbe@emc.com> | 2016-01-21 20:53:50 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2016-01-22 03:53:10 +0300 |
commit | 03beaec80d57e7a540b1990188f8a97a076da6de (patch) | |
tree | 422138c80c662335ebe55f9cd84c2cb1685d317f /drivers/acpi/custom_method.c | |
parent | a1b3695820aa490e58915d720a1438069813008b (diff) | |
download | linux-03beaec80d57e7a540b1990188f8a97a076da6de.tar.xz |
NTB: Fix macro parameter conflict with field name
If the parameter given to the macro is replaced throughout the macro as
it is evaluated. The intent is that the macro parameter should replace
the only the first parameter to container_of(). However, the way the
macro was written, it would also inadvertantly replace a structure field
name. If a parameter of any other name is given to the macro, it will
fail to compile, if the structure does not contain a field of the same
name. At worst, it will compile, and hide improper access of an
unintended field in the structure.
Change the macro parameter name, so it does not conflict with the
structure field name.
Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/acpi/custom_method.c')
0 files changed, 0 insertions, 0 deletions