diff options
| author | Martin Wilck <[email protected]> | 2017-07-20 16:34:02 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2017-08-10 08:43:31 +0000 |
| commit | 758f3735580c21b8a36d644128af6608120a1dde (patch) | |
| tree | 34f4a8c0eeed293d6ab28004118d9246331993b5 /drivers/iio/trigger/stm32-timer-trigger.c | |
| parent | nvme: validate admin queue before unquiesce (diff) | |
| download | kernel-758f3735580c21b8a36d644128af6608120a1dde.tar.gz kernel-758f3735580c21b8a36d644128af6608120a1dde.zip | |
nvme: strip trailing 0-bytes in wwid_show
Some broken controllers (such as earlier Linux targets) pad model or
serial fields with 0-bytes rather than spaces. The NVMe spec disallows
0 bytes in "ASCII" fields. Thus strip trailing 0-bytes, too. Also make
sure that we get no underflow for pathological input.
Signed-off-by: Martin Wilck <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions
