@ -476,8 +476,10 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
if ( r < 0 )
if ( r < 0 )
break ;
break ;
eventfp = f . fd = = - 1 ? NULL : eventfd_fget ( f . fd ) ;
eventfp = f . fd = = - 1 ? NULL : eventfd_fget ( f . fd ) ;
if ( IS_ERR ( eventfp ) )
if ( IS_ERR ( eventfp ) ) {
return PTR_ERR ( eventfp ) ;
r = PTR_ERR ( eventfp ) ;
break ;
}
if ( eventfp ! = vq - > kick ) {
if ( eventfp ! = vq - > kick ) {
pollstop = filep = vq - > kick ;
pollstop = filep = vq - > kick ;
pollstart = vq - > kick = eventfp ;
pollstart = vq - > kick = eventfp ;
@ -489,8 +491,10 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
if ( r < 0 )
if ( r < 0 )
break ;
break ;
eventfp = f . fd = = - 1 ? NULL : eventfd_fget ( f . fd ) ;
eventfp = f . fd = = - 1 ? NULL : eventfd_fget ( f . fd ) ;
if ( IS_ERR ( eventfp ) )
if ( IS_ERR ( eventfp ) ) {
return PTR_ERR ( eventfp ) ;
r = PTR_ERR ( eventfp ) ;
break ;
}
if ( eventfp ! = vq - > call ) {
if ( eventfp ! = vq - > call ) {
filep = vq - > call ;
filep = vq - > call ;
ctx = vq - > call_ctx ;
ctx = vq - > call_ctx ;
@ -505,8 +509,10 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
if ( r < 0 )
if ( r < 0 )
break ;
break ;
eventfp = f . fd = = - 1 ? NULL : eventfd_fget ( f . fd ) ;
eventfp = f . fd = = - 1 ? NULL : eventfd_fget ( f . fd ) ;
if ( IS_ERR ( eventfp ) )
if ( IS_ERR ( eventfp ) ) {
return PTR_ERR ( eventfp ) ;
r = PTR_ERR ( eventfp ) ;
break ;
}
if ( eventfp ! = vq - > error ) {
if ( eventfp ! = vq - > error ) {
filep = vq - > error ;
filep = vq - > error ;
vq - > error = eventfp ;
vq - > error = eventfp ;