diff options
| author | Joe Carnuccio <[email protected]> | 2014-09-25 05:16:41 -0400 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2014-09-25 14:25:02 +0200 |
| commit | efcdf9f5c8dfb1fa2b052e58e4ccb85541aee2cd (patch) | |
| tree | 252e50fe578c91992e697ca1891b52bad97b839d /scripts | |
| parent | 349c390f43c63c2c919b81beb84b3a7592f2dd14 (diff) | |
qla2xxx: Fix potential return count bug in qla2xxx_get_vpd_field().
Call scnprintf() instead of snprintf() since the latter may return
an incorrect count in cases where the write is truncated to fit.
scnprintf() returns the count of what was actually written;
snprintf() returns the count of what would have been written.
Signed-off-by: Joe Carnuccio <[email protected]>
Signed-off-by: Saurav Kashyap <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions