Statistics
| Branch: | Revision:

root / hw @ c9159fe9

Name Size
  9pfs
  alpha
  arm
  cris
  i386
  ide
  kvm
  lm32
  m68k
  microblaze
  mips
  openrisc
  ppc
  s390x
  sh4
  sparc
  sparc64
  unicore32
  usb
  xtensa
9p.h 402 Bytes
Makefile.objs 7.2 kB
a15mpcore.c 3.6 kB
a9mpcore.c 7.7 kB
ac97.c 37.9 kB
acpi.c 13.1 kB
acpi.h 4.8 kB
acpi_piix4.c 17.3 kB
adb.c 11.9 kB
adb.h 2.3 kB
adlib.c 7.4 kB
ads7846.c 4.2 kB
alpha_dp264.c 5.3 kB
alpha_pci.c 3 kB
alpha_sys.h 531 Bytes
alpha_typhoon.c 23.3 kB
an5206.c 2.6 kB
apb_pci.c 15.9 kB
apb_pci.h 289 Bytes
apic-msidef.h 619 Bytes
apic.c 23.3 kB
apic.h 1 kB
apic_common.c 10.7 kB
apic_internal.h 4.6 kB
apm.c 2.4 kB
apm.h 411 Bytes
applesmc.c 7.3 kB
arm-misc.h 2.3 kB
arm11mpcore.c 8.3 kB
arm_boot.c 14 kB
arm_gic.c 21.4 kB
arm_gic_common.c 5.8 kB
arm_gic_internal.h 5.1 kB
arm_l2x0.c 4.7 kB
arm_mptimer.c 9.8 kB
arm_pic.c 963 Bytes
arm_sysctl.c 11.7 kB
arm_timer.c 10.3 kB
armv7m.c 7.6 kB
armv7m_nvic.c 17.9 kB
audiodev.h 337 Bytes
axis_dev88.c 10.7 kB
baum.c 19.6 kB
baum.h 1.2 kB
bitbang_i2c.c 6 kB
bitbang_i2c.h 310 Bytes
blizzard.c 28.5 kB
blizzard_template.h 4 kB
block-common.c 2 kB
block-common.h 2.5 kB
boards.h 1.1 kB
bonito.c 25.5 kB
bt-hci-csr.c 12 kB
bt-hci.c 67.4 kB
bt-hid.c 15.1 kB
bt-l2cap.c 42.7 kB
bt-sdp.c 28.8 kB
bt.c 3.5 kB
bt.h 56.4 kB
cadence_gem.c 39.5 kB
cadence_ttc.c 12.3 kB
cadence_uart.c 13.1 kB
cbus.c 14.8 kB
ccid-card-emulated.c 18.5 kB
ccid-card-passthru.c 10.5 kB
ccid.h 1.9 kB
cdrom.c 4.2 kB
cirrus_vga.c 89.1 kB
cirrus_vga_rop.h 5.5 kB
cirrus_vga_rop2.h 7.9 kB
cirrus_vga_template.h 2.9 kB
collie.c 2 kB
cris-boot.c 3.1 kB
cris-boot.h 200 Bytes
cris_pic_cpu.c 1.6 kB
cs4231.c 4.7 kB
cs4231a.c 20.3 kB
cuda.c 20.8 kB
debugcon.c 3.4 kB
dec_pci.c 4.6 kB
dec_pci.h 173 Bytes
device-hotplug.c 2.5 kB
devices.h 2.1 kB
dma.c 14.5 kB
dp8393x.c 26.5 kB
ds1225y.c 4.5 kB
ds1338.c 3.5 kB
dummy_m68k.c 2.2 kB
e1000.c 40.9 kB
e1000_hw.h 49.6 kB
ecc.c 2.9 kB
eccmemctl.c 11.2 kB
eepro100.c 69.1 kB
eeprom93xx.c 10.4 kB
eeprom93xx.h 1.3 kB
elf_ops.h 9.3 kB
empty_slot.c 2.3 kB
empty_slot.h 86 Bytes
es1370.c 29.7 kB
escc.c 25.9 kB
escc.h 354 Bytes
esp-pci.c 14.3 kB
esp.c 19.3 kB
esp.h 3.1 kB
etraxfs.h 1.8 kB
etraxfs_dma.c 22.2 kB
etraxfs_dma.h 773 Bytes
etraxfs_eth.c 14.5 kB
etraxfs_pic.c 4.9 kB
etraxfs_ser.c 6.5 kB
etraxfs_timer.c 8.8 kB
exynos4210.c 12.4 kB
exynos4210.h 4.7 kB
exynos4210_combiner.c 15.1 kB
exynos4210_fimd.c 67.6 kB
exynos4210_gic.c 14 kB
exynos4210_i2c.c 10 kB
exynos4210_mct.c 41.7 kB
exynos4210_pmu.c 23.2 kB
exynos4210_pwm.c 11.9 kB
exynos4210_rtc.c 16.2 kB
exynos4210_uart.c 19.3 kB
exynos4_boards.c 5.8 kB
fdc.c 68.8 kB
fdc.h 742 Bytes
firmware_abi.h 1.8 kB
flash.h 2.1 kB
fmopl.c 35.1 kB
fmopl.h 6.5 kB
framebuffer.c 3.3 kB
framebuffer.h 504 Bytes
fw_cfg.c 16.5 kB
fw_cfg.h 2.4 kB
g364fb.c 17.8 kB
grackle_pci.c 5.1 kB
grlib.h 3.7 kB
grlib_apbuart.c 7 kB
grlib_gptimer.c 11 kB
grlib_irqmp.c 9.6 kB
gt64xxx.c 34.2 kB
gumstix.c 4 kB
gus.c 8.3 kB
gusemu.h 5.3 kB
gusemu_hal.c 22.6 kB
gusemu_mixer.c 11.9 kB
gustate.h 5 kB
hd-geometry.c 5.5 kB
hda-audio.c 30.9 kB
heathrow_pic.c 5.8 kB
hid.c 13.4 kB
hid.h 2.5 kB
highbank.c 10.2 kB
hpet.c 23.1 kB
hpet_emul.h 1.8 kB
hw.h 2.1 kB
i2c.c 5.2 kB
i2c.h 2.8 kB
i82374.c 4.6 kB
i82378.c 7.4 kB
i8254.c 9.9 kB
i8254.h 2.1 kB
i8254_common.c 8.7 kB
i8254_internal.h 3 kB
i8259.c 12.9 kB
i8259_common.c 5 kB
i8259_internal.h 2.8 kB
ide.h 1.3 kB
imx.h 710 Bytes
imx_avic.c 11.7 kB
imx_ccm.c 8.1 kB
imx_serial.c 12.8 kB
imx_timer.c 18.3 kB
integratorcp.c 15.9 kB
intel-hda-defs.h 22.1 kB
intel-hda.c 38.7 kB
intel-hda.h 2.7 kB
ioapic.c 7.4 kB
ioapic.h 897 Bytes
ioapic_common.c 3.3 kB
ioapic_internal.h 3.4 kB
ioh3420.c 6.9 kB
ioh3420.h 306 Bytes
irq.c 3.3 kB
irq.h 1.2 kB
isa-bus.c 6.5 kB
isa.h 3.2 kB
isa_mmio.c 2.6 kB
ivshmem.c 22.6 kB
jazz_led.c 8.6 kB
kvmvapic.c 22.6 kB
kzm.c 5.4 kB
lan9118.c 39.1 kB
lance.c 4.9 kB
leon3.c 6.7 kB
lm32.h 453 Bytes
lm32_boards.c 10.2 kB
lm32_hwsetup.h 4.9 kB
lm32_juart.c 3.6 kB
lm32_juart.h 320 Bytes
lm32_pic.c 4.5 kB
lm32_pic.h 372 Bytes
lm32_sys.c 4.6 kB
lm32_timer.c 5.4 kB
lm32_uart.c 6.5 kB
lm4549.c 9 kB
lm4549.h 1 kB
lm832x.c 14.7 kB
loader.c 19.8 kB
loader.h 1.9 kB
lsi53c895a.c 61.1 kB
m48t59.c 20.4 kB
mac_dbdma.c 21.4 kB
mac_dbdma.h 1.6 kB
mac_nvram.c 5.1 kB
macio.c 4.4 kB
mainstone.c 5.8 kB
marvell_88w8618_audio.c 8.3 kB
max111x.c 4.4 kB
max7310.c 4.9 kB
mc146818rtc.c 27.5 kB
mc146818rtc.h 307 Bytes
mc146818rtc_regs.h 2.1 kB
mcf.h 977 Bytes
mcf5206.c 14.1 kB
mcf5208.c 8.2 kB
mcf_fec.c 12.3 kB
mcf_intc.c 3.7 kB
mcf_uart.c 7 kB
megasas.c 68.9 kB
mfi.h 36.4 kB
microblaze_boot.c 5.9 kB
microblaze_boot.h 331 Bytes
microblaze_pic_cpu.c 1.6 kB
microblaze_pic_cpu.h 173 Bytes
milkymist-ac97.c 8.3 kB
milkymist-hpdmc.c 4.2 kB
milkymist-hw.h 6.2 kB
milkymist-memcard.c 8.1 kB
milkymist-minimac2.c 14 kB
milkymist-pfpu.c 14.4 kB
milkymist-softusb.c 9 kB
milkymist-sysctl.c 8.9 kB
milkymist-tmu2.c 13.3 kB
milkymist-uart.c 5.6 kB
milkymist-vgafb.c 8 kB
milkymist-vgafb_template.h 2.5 kB
milkymist.c 6.8 kB
mips-bios.h 175 Bytes
mips.h 942 Bytes
mips_addr.c 1.3 kB
mips_cpudevs.h 380 Bytes
mips_fulong2e.c 12.7 kB
mips_int.c 2 kB
mips_jazz.c 10.6 kB
mips_malta.c 33.6 kB
mips_mipssim.c 7.3 kB
mips_r4k.c 8.9 kB
mips_timer.c 4.5 kB
mipsnet.c 7.2 kB
mpc8544_guts.c 4 kB
msi.c 11.8 kB
msi.h 1.5 kB
msix.c 15.8 kB
msix.h 1.4 kB
msmouse.c 2.6 kB
msmouse.h 72 Bytes
mst_fpga.c 6 kB
multiboot.c 12.4 kB
multiboot.h 341 Bytes
musicpal.c 46.5 kB
nand.c 23 kB
ne2000-isa.c 3.4 kB
ne2000.c 22.7 kB
ne2000.h 960 Bytes
nseries.c 43.8 kB
null-machine.c 915 Bytes
nvram.h 1.9 kB
omap.h 31.7 kB
omap1.c 116.5 kB
omap2.c 86.2 kB
omap_clk.c 30.3 kB
omap_dma.c 59.2 kB
omap_dss.c 32.1 kB
omap_gpio.c 20.7 kB
omap_gpmc.c 28.5 kB
omap_gptimer.c 12.9 kB
omap_i2c.c 13.6 kB
omap_intc.c 17.7 kB
omap_l4.c 4.4 kB
omap_lcd_template.h 4.9 kB
omap_lcdc.c 13.4 kB
omap_mmc.c 16 kB
omap_sdrc.c 4.8 kB
omap_spi.c 9.7 kB
omap_sx1.c 8.1 kB
omap_synctimer.c 2.8 kB
omap_tap.c 3.4 kB
omap_uart.c 5.2 kB
onenand.c 24.6 kB
opencores_eth.c 18.8 kB
openpic.c 47.3 kB
openpic.h 752 Bytes
openrisc_pic.c 1.7 kB
openrisc_sim.c 4.5 kB
openrisc_timer.c 2.8 kB
palm.c 9.5 kB
parallel.c 18 kB
pc.c 31.1 kB
pc.h 6.5 kB
pc_piix.c 20 kB
pc_sysfw.c 7.7 kB
pci-hotplug.c 8.2 kB
pci-stub.c 1.4 kB
pci.c 61.6 kB
pci.h 20.3 kB
pci_bridge.c 12.9 kB
pci_bridge.h 2.1 kB
pci_bridge_dev.c 5.2 kB
pci_host.c 5.2 kB
pci_host.h 2.4 kB
pci_ids.h 4.3 kB
pci_internals.h 2.2 kB
pci_regs.h 35.5 kB
pcie.c 19.2 kB
pcie.h 5.8 kB
pcie_aer.c 31.7 kB
pcie_aer.h 3.4 kB
pcie_host.c 4.7 kB
pcie_host.h 1.5 kB
pcie_port.c 3.1 kB
pcie_port.h 1.4 kB
pcie_regs.h 7.2 kB
pckbd.c 15.8 kB
pcmcia.h 1.8 kB
pcnet-pci.c 11.1 kB
pcnet.c 54.7 kB
pcnet.h 2.1 kB
pcspk.c 5.4 kB
pcspk.h 1.5 kB
petalogix_ml605_mmu.c 5.5 kB
petalogix_s3adsp1800_mmu.c 4.4 kB
pflash_cfi01.c 19.9 kB
pflash_cfi02.c 21.6 kB
piix4.c 3.8 kB
piix_pci.c 19.1 kB
pixel_ops.h 1.7 kB
pl011.c 8.3 kB
pl022.c 8.4 kB
pl031.c 6.9 kB
pl041.c 16.7 kB
pl041.h 3.4 kB
pl041.hx 2 kB
pl050.c 5 kB
pl061.c 8.7 kB
pl080.c 11.6 kB
pl110.c 13.2 kB
pl110_template.h 9.3 kB
pl181.c 15.2 kB
pl190.c 7.7 kB
pm_smbus.c 4.2 kB
pm_smbus.h 482 Bytes
ppc-viosrp.h 6.7 kB
ppc.c 38.3 kB
ppc.h 3.6 kB
ppc405.h 3.1 kB
ppc405_boards.c 20.3 kB
ppc405_uc.c 66 kB
ppc440_bamboo.c 9.5 kB
ppc4xx.h 2.6 kB
ppc4xx_devs.c 20.5 kB
ppc4xx_pci.c 11.2 kB
ppc_booke.c 7.9 kB
ppc_mac.h 3.1 kB
ppc_newworld.c 15.5 kB
ppc_oldworld.c 11.6 kB
ppc_prep.c 20.6 kB
ppce500_pci.c 10.7 kB
ppce500_spin.c 5.7 kB
prep_pci.c 5.9 kB
primecell.h 292 Bytes
ps2.c 20.4 kB
ps2.h 1.6 kB
ptimer.c 6 kB
ptimer.h 1.3 kB
puv3.c 3.8 kB
puv3.h 1.6 kB
puv3_dma.c 2.5 kB
puv3_gpio.c 3.4 kB
puv3_intc.c 3.2 kB
puv3_ost.c 3.6 kB
puv3_pm.c 3.3 kB
pxa.h 5.4 kB
pxa2xx.c 68.4 kB
pxa2xx_dma.c 16.2 kB
pxa2xx_gpio.c 10 kB
pxa2xx_keypad.c 9.6 kB
pxa2xx_lcd.c 29.7 kB
pxa2xx_mmci.c 14.3 kB
pxa2xx_pcmcia.c 5.4 kB
pxa2xx_pic.c 10.2 kB
pxa2xx_template.h 11.3 kB
pxa2xx_timer.c 14.7 kB
qdev-addr.c 2 kB
qdev-addr.h 277 Bytes
qdev-dma.h 352 Bytes
qdev-monitor.c 16.1 kB
qdev-properties.c 30.9 kB
qdev.c 20.4 kB
qdev.h 13.5 kB
qxl-logger.c 8.6 kB
qxl-render.c 9 kB
qxl.c 76 kB
qxl.h 4.9 kB
r2d.c 9.7 kB
rc4030.c 21.2 kB
realview.c 13.7 kB
realview_gic.c 2.1 kB
rtl8139.c 101 kB
s390-virtio-bus.c 14.6 kB
s390-virtio-bus.h 3.3 kB
s390-virtio.c 9.9 kB
sb16.c 34.8 kB
sbi.c 4.1 kB
scsi-bus.c 52.8 kB
scsi-defs.h 10.7 kB
scsi-disk.c 73.9 kB
scsi-generic.c 14.1 kB
scsi.h 8.8 kB
sd.c 46.8 kB
sd.h 2.8 kB
serial.c 27.5 kB
sga.c 2 kB
sh.h 1.6 kB
sh7750.c 23.2 kB
sh7750_regnames.c 2.3 kB
sh7750_regnames.h 127 Bytes
sh7750_regs.h 60.5 kB
sh_intc.c 13.3 kB
sh_intc.h 2 kB
sh_pci.c 5.5 kB
sh_serial.c 10.4 kB
sh_timer.c 8.8 kB
sharpsl.h 352 Bytes
shix.c 3.5 kB
shpc.c 23.9 kB
shpc.h 1.2 kB
slavio_intctl.c 13.8 kB
slavio_misc.c 13.2 kB
slavio_timer.c 14.1 kB
slotid_cap.c 1.3 kB
slotid_cap.h 249 Bytes
sm501.c 41.2 kB
sm501_template.h 3.8 kB
smbios.c 7.7 kB
smbios.h 4.4 kB
smbus.c 8.1 kB
smbus.h 3.5 kB
smbus_eeprom.c 4.7 kB
smc91c111.c 22.1 kB
soc_dma.c 11.6 kB
soc_dma.h 3.4 kB
spapr.c 27.6 kB
spapr.h 13 kB
spapr_hcall.c 21.6 kB
spapr_iommu.c 6.6 kB
spapr_llan.c 15.7 kB
spapr_pci.c 24.6 kB
spapr_pci.h 2.5 kB
spapr_rtas.c 9.1 kB
spapr_vio.c 16.6 kB
spapr_vio.h 4.7 kB
spapr_vscsi.c 28.4 kB
spapr_vty.c 5.7 kB
sparc32_dma.c 8.9 kB
sparc32_dma.h 446 Bytes
spitz.c 32.8 kB
srp.h 6.3 kB
ssd0303.c 8.9 kB
ssd0323.c 9.5 kB
ssi-sd.c 8.3 kB
ssi.c 2.1 kB
ssi.h 1.5 kB
stellaris.c 40.4 kB
stellaris_enet.c 12.7 kB
stellaris_input.c 2.3 kB
stream.c 495 Bytes
stream.h 872 Bytes
strongarm.c 42.2 kB
strongarm.h 1.5 kB
sun4c_intctl.c 6.1 kB
sun4m.c 58.3 kB
sun4m.h 1.1 kB
sun4m_iommu.c 13.1 kB
sun4u.c 29.5 kB
sysbus.c 7.8 kB
sysbus.h 3.1 kB
tc58128.c 4.2 kB
tc6393xb.c 17.9 kB
tc6393xb_template.h 2.1 kB
tcx.c 20.5 kB
tmp105.c 6.1 kB
tosa.c 8 kB
tsc2005.c 15.2 kB
tsc210x.c 33.8 kB
tusb6010.c 24.6 kB
twl92230.c 24.4 kB
unin_pci.c 14.6 kB
usb.h 16 kB
versatile_i2c.c 3 kB
versatile_pci.c 4.2 kB
versatilepb.c 12.3 kB
vexpress.c 17 kB
vfio_pci.c 54.6 kB
vfio_pci_int.h 3.2 kB
vga-isa-mm.c 4.4 kB
vga-isa.c 3.2 kB
vga-pci.c 3.3 kB
vga-pci.h 194 Bytes
vga.c 72.1 kB
vga.h 6.5 kB
vga_int.h 7.5 kB
vga_template.h 14.2 kB
vhost.c 29.3 kB
vhost.h 1.5 kB
vhost_net.c 6.6 kB
vhost_net.h 573 Bytes
virtex_ml507.c 8.5 kB
virtio-balloon.c 7.6 kB
virtio-balloon.h 1.5 kB
virtio-blk.c 17.9 kB
virtio-blk.h 3 kB
virtio-console.c 4.8 kB
virtio-net.c 31.2 kB
virtio-net.h 7.5 kB
virtio-pci.c 33.2 kB
virtio-pci.h 1.5 kB
virtio-scsi.c 21.6 kB
virtio-scsi.h 1.3 kB
virtio-serial-bus.c 27.5 kB
virtio-serial.h 5.9 kB
virtio.c 28 kB
virtio.h 9.3 kB
vmmouse.c 7.8 kB
vmport.c 4.5 kB
vmware_vga.c 34.1 kB
vmware_vga.h 263 Bytes
vt82c686.c 15.1 kB
vt82c686.h 323 Bytes
watchdog.c 4.2 kB
watchdog.h 1.4 kB
wdt_i6300esb.c 13.8 kB
wdt_ib700.c 3.8 kB
wm8750.c 20.3 kB
xen-host-pci-device.c 9.6 kB
xen-host-pci-device.h 1.7 kB
xen.h 1.7 kB
xen_apic.c 2.2 kB
xen_backend.c 21.2 kB
xen_backend.h 3.9 kB
xen_blkif.h 3.5 kB
xen_common.h 3.8 kB
xen_console.c 7.3 kB
xen_devconfig.c 4.8 kB
xen_disk.c 24.2 kB
xen_domainbuild.c 8.5 kB
xen_domainbuild.h 487 Bytes
xen_machine_pv.c 3.6 kB
xen_nic.c 13.8 kB
xen_platform.c 11.3 kB
xen_pt.c 26.2 kB
xen_pt.h 8.8 kB
xen_pt_config_init.c 57.2 kB
xen_pt_msi.c 16.8 kB
xenfb.c 30.4 kB
xgmac.c 14.6 kB
xics.c 14.1 kB
xics.h 1.7 kB
xilinx.h 2.9 kB
xilinx_axidma.c 13.4 kB
xilinx_axienet.c 22.7 kB
xilinx_ethlite.c 7.3 kB
xilinx_intc.c 5 kB
xilinx_timer.c 6.8 kB
xilinx_uartlite.c 5.9 kB
xilinx_zynq.c 4.8 kB
xio3130_downstream.c 6.4 kB
xio3130_downstream.h 406 Bytes
xio3130_upstream.c 5.4 kB
xio3130_upstream.h 319 Bytes
xtensa_bootparam.h 528 Bytes
xtensa_lx60.c 9.9 kB
xtensa_pic.c 5.7 kB
xtensa_sim.c 4.2 kB
z2.c 9.5 kB
zaurus.c 7.1 kB
zynq_slcr.c 14.5 kB

Latest revisions

# Date Author Comment
c9159fe9 10/06/2012 12:07 am Stefan Weil

Remove libhw

The entries for libhw* are no longer needed in .gitignore.

There is also no longer a difference between common-obj-y and
hw-obj-y, so one of those two macros is sufficient.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

e67edb94 10/05/2012 04:02 pm Paolo Bonzini

rtc: map CMOS index 0x37 to 0x32 on read and writes

QEMU's attempt to implement the century byte cover two possible places
for the byte. A common one on modern chipsets is 0x32, but QEMU also
stores the value in 0x37 (apparently for IBM PS/2 compatibility---it's...

b8994faf 10/05/2012 04:02 pm Paolo Bonzini

rtc: implement century byte

Implement the century byte in the RTC emulation, and test that it works.
This leads to some annoying compatibility code because we need to treat
a value of 2000 for the base_year property as "use the century byte
properly" (which would be a value of 0)....

3cda3462 10/05/2012 03:58 pm Jim Meyering

acpi: remove strzcpy (strncpy-identical) function; just use strncpy

Adjust all uses s/strzcpy/strncpy/ and mark these uses
of strncpy as "ok".

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

9310b9be 10/05/2012 03:58 pm Jim Meyering

hw/r2d: add comment: this strncpy use is ok

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

a79b5f8b 10/05/2012 03:58 pm Jim Meyering

hw/9pfs: avoid buffer overrun

v9fs_add_dir_node and qemu_v9fs_synth_add_file used strncpy
to form node->name, which requires NUL-termination, but
strncpy does not ensure NUL-termination.
Use pstrcpy, which does.

Acked-by: Aneesh Kumar K.V <>...

1044dc11 10/05/2012 03:58 pm Jim Meyering

lm32: avoid buffer overrun

Actually do what the comment says, using pstrcpy NUL-terminate:
strncpy does not always do that.

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

e5fda038 10/05/2012 03:58 pm Jim Meyering

bt: replace fragile snprintf use and unwarranted strncpy

In bt_hci_name_req a failed snprintf could return len larger than
sizeof(params.name), which means the following memset call would
have a "length" value of (size_t)-1, -2, etc... Sounds scary.
But currently, one can deduce that there is no problem:...

9238c209 10/05/2012 03:58 pm Jim Meyering

virtio-9p: avoid unwarranted uses of strncpy

In all of these cases, the uses of strncpy were unnecessary, since
at each point of use we know that the NUL-terminated source bytes
fit in the destination buffer. Use memcpy in place of strncpy.

Acked-by: Aneesh Kumar K.V <>...

9d055d8a 10/05/2012 03:58 pm Jim Meyering

vscsi: avoid unwarranted strncpy

Don't use strncpy when the source string is known to fit
in the destination buffer. Use equivalent memcpy.
We could even use strcpy, here, but some static analyzers
warn about that, so don't add new uses.

Acked-by: David Gibson <>...

View revisions

Also available in: Atom