Daniel Verkamp
c739969849
nvmet: fix space padding in serial number
...
Commit 42de82a8b5 previously attempted to fix this, and it did
correctly pad the MN and FR fields with spaces, but the SN field still
contains 0 bytes. The current code fills out the first 16 bytes with
hex2bin, leaving the last 4 bytes zeroed. Rather than adding a lot of
error-prone math to avoid overwriting SN twice, just set the whole thing
to spaces up front (it's only 20 bytes).
Fixes: 42de82a8b5 ("nvmet: don't report 0-bytes in serial number")
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-04-12 09:58:27 -06:00
..
accessibility
acpi
* Add NVDIMM support to EDAC (Tony Luck)
2018-04-05 14:21:13 -07:00
amba
android
ata
Merge branch 'for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
2018-04-03 17:42:25 -07:00
atm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-04-01 19:49:34 -04:00
auxdisplay
base
Driver core patches for 4.17-rc1
2018-04-04 19:41:45 -07:00
bcma
block
loop: fix LOOP_GET_STATUS lock imbalance
2018-04-10 08:38:46 -06:00
bluetooth
Bluetooth: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for BTUSB_QCA_ROME
2018-04-01 21:43:02 +03:00
bus
Staging/IIO patches for 4.17-rc1
2018-04-04 18:56:27 -07:00
cdrom
char
kernel.h: Retain constant expression output for max()/min()
2018-04-05 14:17:16 -07:00
clk
clk: bcm2835: Protect sections updating shared registers
2018-03-19 09:27:37 -07:00
clocksource
arch: remove obsolete architecture ports
2018-04-02 20:20:12 -07:00
connector
cpufreq
Power management updates for 4.17-rc1
2018-04-03 10:45:39 -07:00
cpuidle
cpuidle: poll_state: Avoid invoking local_clock() too often
2018-03-29 13:06:08 +02:00
crypto
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2018-04-04 17:11:08 -07:00
dax
dca
devfreq
dio
dma
dmaengine: stm32-dmamux: fix a potential buffer overflow
2018-03-22 10:51:35 +05:30
dma-buf
edac
* Add NVDIMM support to EDAC (Tony Luck)
2018-04-05 14:21:13 -07:00
eisa
extcon
Char/Misc patches for 4.17-rc1
2018-04-04 20:07:20 -07:00
firewire
firmware
* Add NVDIMM support to EDAC (Tony Luck)
2018-04-05 14:21:13 -07:00
fmc
treewide: Fix typos in printk
2018-03-27 09:51:22 +02:00
fpga
PCI: Add Altera vendor ID
2018-03-14 19:13:47 +01:00
fsi
fsi: core: Add check for master property no-scan-on-init
2018-03-14 19:11:01 +01:00
gpio
This is the bulk of GPIO changes for the v4.17 kernel cycle:
2018-04-05 09:51:41 -07:00
gpu
kernel.h: Retain constant expression output for max()/min()
2018-04-05 14:17:16 -07:00
hid
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
2018-04-05 11:53:34 -07:00
hsi
HSI: hsi_char: Delete an error message for a failed memory allocation in hsc_probe()
2018-03-19 16:31:07 +01:00
hv
hv: add SPDX license id to Kconfig
2018-03-28 13:24:56 +02:00
hwmon
hwspinlock
hwtracing
Char/Misc patches for 4.17-rc1
2018-04-04 20:07:20 -07:00
i2c
arch: remove obsolete architecture ports
2018-04-02 20:20:12 -07:00
ide
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
idle
iio
This is the bulk of GPIO changes for the v4.17 kernel cycle:
2018-04-05 09:51:41 -07:00
infiniband
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-04-01 19:49:34 -04:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2018-04-05 13:21:57 -07:00
iommu
Merge branch 'x86-dma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2018-04-02 17:18:45 -07:00
ipack
irqchip
Staging/IIO patches for 4.17-rc1
2018-04-04 18:56:27 -07:00
isdn
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-04-03 14:04:18 -07:00
leds
leds: Fix wrong dmi_match on PC Engines APU LEDs
2018-03-20 20:28:00 +01:00
lightnvm
lightnvm: pblk: remove some unnecessary NULL checks
2018-03-29 17:29:09 -06:00
macintosh
macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall
2018-03-19 10:22:59 +01:00
mailbox
mcb
mcb: add Altera PCI ID to mcb-pci
2018-03-14 19:13:48 +01:00
md
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
media
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2018-04-05 11:56:35 -07:00
memory
memstick
message
treewide: Align function definition open/close braces
2018-03-26 11:13:09 +02:00
mfd
misc
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
mmc
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
mtd
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
mux
net
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2018-04-05 11:56:35 -07:00
nfc
ntb
nubus
nvdimm
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
nvme
nvmet: fix space padding in serial number
2018-04-12 09:58:27 -06:00
nvmem
Char/Misc patches for 4.17-rc1
2018-04-04 20:07:20 -07:00
of
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-04-03 14:04:18 -07:00
opp
oprofile
oprofilefs: don't oops on allocation failure
2018-03-29 15:07:48 -04:00
parisc
parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode
2018-03-27 18:52:22 +02:00
parport
Char/Misc patches for 4.17-rc1
2018-04-04 20:07:20 -07:00
pci
arch: remove obsolete architecture ports
2018-04-02 20:20:12 -07:00
pcmcia
Power management updates for 4.17-rc1
2018-04-03 10:45:39 -07:00
perf
arm64 updates for 4.17
2018-04-04 16:01:43 -07:00
phy
phy: for 4.17
2018-03-20 10:10:46 +01:00
pinctrl
This is the bulk of GPIO changes for the v4.17 kernel cycle:
2018-04-05 09:51:41 -07:00
platform
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2018-04-05 11:56:35 -07:00
pnp
power
power supply and reset changes for the v4.17 series
2018-04-03 12:10:01 -07:00
powercap
powercap: RAPL: Add support for Cannon Lake
2018-03-19 00:02:24 +01:00
pps
pps: generator: use new parport device model
2018-03-14 17:53:06 +01:00
ps3
ptp
pwm
pwm: remove pwm-bfin driver
2018-03-26 15:57:08 +02:00
rapidio
ras
regulator
Merge remote-tracking branches 'regulator/topic/88pg86x', 'regulator/topic/dt', 'regulator/topic/formatting' and 'regulator/topic/gpio' into regulator-next
2018-03-28 10:33:53 +08:00
remoteproc
reset
rpmsg
rtc
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2018-04-05 11:56:35 -07:00
s390
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
sbus
sparc64: Properly range check DAX completion index
2018-04-01 20:07:00 -04:00
scsi
sr: get/drop reference to device in revalidate and check_events
2018-04-11 11:26:09 -06:00
sfi
sh
siox
siox: fix possible buffer overflow in device_add_store
2018-03-15 18:07:46 +01:00
slimbus
slimbus: core: use put_device() instead of kfree()
2018-03-15 17:55:52 +01:00
sn
soc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-03-23 11:31:58 -04:00
soundwire
spi
spi: SPI updates for v4.17
2018-04-03 12:06:21 -07:00
spmi
ssb
staging
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
target
for-4.17/block-20180402
2018-04-05 14:27:02 -07:00
tc
tee
thermal
thunderbolt
tty
TTY/Serial driver patches for 4.17-rc1
2018-04-04 18:43:49 -07:00
uio
usb
TTY/Serial driver patches for 4.17-rc1
2018-04-04 18:43:49 -07:00
uwb
vfio
Revert: "vfio-pci: Mask INTx if a device is not capabable of enabling it"
2018-03-21 22:50:19 -06:00
vhost
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-04-01 19:49:34 -04:00
video
TTY/Serial driver patches for 4.17-rc1
2018-04-04 18:43:49 -07:00
virt
virtio
visorbus
vlynq
vme
w1
w1: use put_device() if device_register() fail
2018-03-14 14:58:50 +01:00
watchdog
This is the bulk of GPIO changes for the v4.17 kernel cycle:
2018-04-05 09:51:41 -07:00
xen
x86/dma: Remove dma_alloc_coherent_mask()
2018-03-20 10:01:56 +01:00
zorro
zorro: Set up z->dev.dma_mask for the DMA API
2018-03-19 10:26:46 +01:00
Kconfig
hwtracing: Add HW tracing support menu
2018-03-29 13:38:10 +03:00
Makefile