diff options
author | Srinivas Kandagatla <[email protected]> | 2013-07-04 10:35:35 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-07-04 14:34:17 -0700 |
commit | d741434c3e0ae5592b72a0f4833a42b4be1b2fa1 (patch) | |
tree | 10378f1e0e36060ba615ca2a4736e597c26176df /net/unix/sysctl_net_unix.c | |
parent | c9324d1870f3a7d13297ae6b787c567606ab3c89 (diff) |
dt:net:stmmac: Allocate platform data only if its NULL.
In some DT use-cases platform data might be already allocated and passed
via AUXDATA. These are the cases where machine level code populates few
callbacks in the platform data.
This patch adds check and reuses platform_data if its valid, before
allocating a new one.
Signed-off-by: Srinivas Kandagatla <[email protected]>
Acked-by: Giuseppe Cavallaro <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions