[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tapdisk2: initialize 'name' parameter of BLKTAP2_IOCTL_CREATE_DEVICE
# HG changeset patch # User Jan Beulich <JBeulich@xxxxxxxx> # Date 1331725244 0 # Node ID 20c8a7db63d160e95fcf5c8e2f9d31923d336316 # Parent e8660d8cf4be332e53cf6e2765f21804e3bfe28e tapdisk2: initialize 'name' parameter of BLKTAP2_IOCTL_CREATE_DEVICE This keeps the kernel driver from printing garbage. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r e8660d8cf4be -r 20c8a7db63d1 tools/blktap2/drivers/tapdisk-control.c --- a/tools/blktap2/drivers/tapdisk-control.c Wed Mar 14 11:10:20 2012 +0000 +++ b/tools/blktap2/drivers/tapdisk-control.c Wed Mar 14 11:40:44 2012 +0000 @@ -462,6 +462,7 @@ params.capacity = image.size; params.sector_size = image.secsize; + strncpy(params.name, vbd->name, BLKTAP2_MAX_MESSAGE_LEN); err = ioctl(vbd->ring.fd, BLKTAP2_IOCTL_CREATE_DEVICE, ¶ms); if (err && errno != EEXIST) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |