]> xenbits.xensource.com Git - people/royger/linux-2.6.18-xen.git/commit
xen/blktap: fix various checks
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 16:19:56 +0000 (17:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 16:19:56 +0000 (17:19 +0100)
commita032e3dfc7d0944464dc6f486871e6ba823e5a75
tree0243ffe6e57fc79fc7a7e9f138873bc0c086f774
parent4ee3e25985bf61cd3a351b32d19d8475e2254e85
xen/blktap: fix various checks

- array indices got checked after having indexed the array already
- several were off by one
- BLKTAP_IOCTL_FREEINTF should not be used on other than the control
  device (or the logic should be changed to that when thus used only
  the respective device can be freed)
- BLKTAP_IOCTL_MINOR can reasonably also be used on non-control
- devices
  (returning that device's minor and ignoring the passed in argument)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blktap/blktap.c
drivers/xen/blktap2/control.c
drivers/xen/blktap2/ring.c