diff options
author | Vivien Didelot <[email protected]> | 2017-10-24 16:37:19 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-10-25 10:49:14 +0900 |
commit | 3eb8feeb1708c7dbfd2e97df92a2a407c116606e (patch) | |
tree | 0c922fe5e47208525173a35c91f2743385df3780 /net/unix | |
parent | 829385f08ae99740276cbd46c9db29764c519211 (diff) |
net: dsa: check master device before put
In the case of pdata, the dsa_cpu_parse function calls dev_put() before
making sure it isn't NULL. Fix this.
Fixes: 71e0bbde0d88 ("net: dsa: Add support for platform data")
Signed-off-by: Vivien Didelot <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions