search for: out_kfree

Displaying 3 results from an estimated 3 matches for "out_kfree".

Did you mean: out_free
2009 Sep 29
0
[PATCH 3/4] virtio_blk: implement a request-based ID command, VIRTIO_BLK_T_GET_ID
..._has_feature(vblk->vdev, VIRTIO_BLK_F_GET_ID)) + err = virtblk_get_id(vblk, opaque); + /* The deprecated way. */ + else if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_IDENTIFY)) + err = virtblk_identify_deprecated(vblk, opaque); + /* No way. */ + else + err = -ENOTTY; - if (err) - goto out_kfree; + if (!err) + if (copy_to_user(argp, opaque, VIRTIO_BLK_ID_BYTES)) + err = -EFAULT; - if (copy_to_user(argp, opaque, VIRTIO_BLK_ID_BYTES)) - err = -EFAULT; - -out_kfree: kfree(opaque); -out: return err; } @@ -460,7 +497,8 @@ static struct virtio_device_id id_table[ static unsigned in...
2009 Sep 29
0
[PATCH 3/4] virtio_blk: implement a request-based ID command, VIRTIO_BLK_T_GET_ID
..._has_feature(vblk->vdev, VIRTIO_BLK_F_GET_ID)) + err = virtblk_get_id(vblk, opaque); + /* The deprecated way. */ + else if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_IDENTIFY)) + err = virtblk_identify_deprecated(vblk, opaque); + /* No way. */ + else + err = -ENOTTY; - if (err) - goto out_kfree; + if (!err) + if (copy_to_user(argp, opaque, VIRTIO_BLK_ID_BYTES)) + err = -EFAULT; - if (copy_to_user(argp, opaque, VIRTIO_BLK_ID_BYTES)) - err = -EFAULT; - -out_kfree: kfree(opaque); -out: return err; } @@ -460,7 +497,8 @@ static struct virtio_device_id id_table[ static unsigned in...
2012 Sep 17
13
[PATCH 1/2 v3] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag
We''re going to use this flag EXTENT_DEFRAG to indicate which range belongs to defragment so that we can implement snapshow-aware defrag: We set the EXTENT_DEFRAG flag when dirtying the extents that need defragmented, so later on writeback thread can differentiate between normal writeback and writeback started by defragmentation. This patch is used for the latter one. Originally patch