]> xenbits.xensource.com Git - people/royger/freebsd.git/commit
In xbd_connect(), use correct scanf conversion specifiers for the
authordim <dim@FreeBSD.org>
Wed, 14 Dec 2016 19:28:19 +0000 (19:28 +0000)
committerdim <dim@FreeBSD.org>
Wed, 14 Dec 2016 19:28:19 +0000 (19:28 +0000)
commit0c8256861b80bccf8f38db07faa7bb97c1f14021
treeb05eaa01552a5713312878b5094f210a2312613f
parent0d4f878b465ede19c6978a43250b686f65b48037
In xbd_connect(), use correct scanf conversion specifiers for the
feature_barrier and feature_flush variables.  Otherwise, adjacent
variables on the stack, such as sector_size, may be overwritten, with
disastrous results.

Note that I did not see a good reason to revert the addition of zero
checks introduced in r310013.  Better safe than sorry.

PR: 215209
Tested by: royger
MFC after: 3 days
sys/dev/xen/blkfront/blkfront.c