diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2017-03-20 17:25:35 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-04-05 14:45:09 -0400 |
commit | 62eed66e98b4c2286fef2ce5911d8d75b7515f7b (patch) | |
tree | ffc487a61386670b9fea0621b4ec364b57ce445d /net/switchdev/switchdev.c | |
parent | 5d6f08afdd394c0b162cefe383093aace3e94e39 (diff) |
IB/hfi1: Protect the global dev_cntr_names and port_cntr_names
Protect the global dev_cntr_names and port_cntr_names with the global
mutex as they are allocated and freed in a function called per device.
Otherwise there is a danger of double free and memory leaks.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions