| 318e737d | 08-Apr-2019 |
Alejandro Lucero <[email protected]> |
net/nfp: fix memory leak
If errors, release the allocated structure.
Coverity issue: 277222 Fixes: c7e9729da6b5 ("net/nfp: support CPP") Cc: [email protected]
Signed-off-by: Alejandro Lucero <alejan
net/nfp: fix memory leak
If errors, release the allocated structure.
Coverity issue: 277222 Fixes: c7e9729da6b5 ("net/nfp: support CPP") Cc: [email protected]
Signed-off-by: Alejandro Lucero <[email protected]>
show more ...
|
| 342a7bdd | 26-Jun-2018 |
Alejandro Lucero <[email protected]> |
net/nfp: avoid access to sysfs resource0 file
NFP CPP interface dinamically configures NFP CPP BARs for accessing any NFP chip component from user space. This requires to map PCI BAR regions specifi
net/nfp: avoid access to sysfs resource0 file
NFP CPP interface dinamically configures NFP CPP BARs for accessing any NFP chip component from user space. This requires to map PCI BAR regions specifically. However, this does not require to do such map over the usual map done by VFIO or UIO drivers with the device PCI BARs.
This patch avoids this remapping and therefore also avoids to access the device sysfs resource0 file for doing that remapping.
Signed-off-by: Alejandro Lucero <[email protected]>
show more ...
|
| 62280b78 | 14-May-2018 |
Andy Green <[email protected]> |
net/nfp: fix off-by-one and no nul on strncpy use
drivers/net/nfp/nfpcore/nfp_resource.c:76:2:error: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 8 [-Werror=stringop-tru
net/nfp: fix off-by-one and no nul on strncpy use
drivers/net/nfp/nfpcore/nfp_resource.c:76:2:error: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 8 [-Werror=stringop-truncation] strncpy(name_pad, res->name, sizeof(name_pad));
Fixes: c7e9729da6b5 ("net/nfp: support CPP")
Signed-off-by: Andy Green <[email protected]> Acked-by: Pablo de Lara <[email protected]>
show more ...
|