diff options
author | 2018-03-15 14:17:20 -0500 | |
---|---|---|
committer | 2018-03-29 12:18:32 +0530 | |
commit | 3424a516d9d2d3fa45c63750c15ea2bba893ea81 (patch) | |
tree | 94dfb6af1f4793d297e5f258f2c30dbef4e34691 /net/unix/af_unix.c | |
parent | ARM: davinci: move davinci_clk_init() to init_time (diff) | |
download | wireguard-linux-3424a516d9d2d3fa45c63750c15ea2bba893ea81.tar.xz wireguard-linux-3424a516d9d2d3fa45c63750c15ea2bba893ea81.zip |
ARM: davinci: da8xx: fix oops in USB PHY driver due to stack allocated platform_data
This fixes a possible kernel oops due to using stack allocated platform
data for the USB PHY driver on DA8XX devices. If the platform device
probe is deferred, then we get a corrupt pointer for the platform data.
We now use a global static struct for the platform data so that the
platform data pointer does not get written over.
Fixes: bdec5a6b5789 ("ARM: da8xx: use platform data for CFGCHIP syscon regmap")
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions