diff options
| author | Tadeusz Struk <tadeusz.struk@intel.com> | 2017-03-21 03:25:35 +0300 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2017-04-05 21:45:09 +0300 |
| commit | 62eed66e98b4c2286fef2ce5911d8d75b7515f7b (patch) | |
| tree | ffc487a61386670b9fea0621b4ec364b57ce445d /include/linux | |
| parent | 5d6f08afdd394c0b162cefe383093aace3e94e39 (diff) | |
| download | linux-62eed66e98b4c2286fef2ce5911d8d75b7515f7b.tar.xz | |
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 'include/linux')
0 files changed, 0 insertions, 0 deletions
