Message ID | 1478195304-14547-2-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/ubuntu/hio/hio.c b/ubuntu/hio/hio.c index e3d161f..25554c0 100644 --- a/ubuntu/hio/hio.c +++ b/ubuntu/hio/hio.c @@ -61,7 +61,8 @@ #include <linux/devfs_fs_kernel.h> #endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)) -#define bio_endio(bio, errors) bio_endio(bio) +#define bio_endio(bio, errors) \ + do { bio->bi_error = errors; bio_endio(bio); } while (0) #endif /* driver */