1. 12 May, 2009 2 commits
    • Alexander Beregalov's avatar
      viocd: needs to depend on BLOCK · 05dc7b61
      Alexander Beregalov authored
      Fix this build error when CONFIG_BLOCK is not set:
      drivers/cdrom/viocd.c: In function 'viocd_blk_open':
      drivers/cdrom/viocd.c:156: error: dereferencing pointer to incomplete type
      drivers/cdrom/viocd.c: In function 'viocd_blk_release':
      drivers/cdrom/viocd.c:162: error: dereferencing pointer to incomplete type
      drivers/cdrom/viocd.c: In function 'viocd_blk_ioctl':
      drivers/cdrom/viocd.c:170: error: dereferencing pointer to incomplete type
      drivers/cdrom/viocd.c: In function 'viocd_blk_media_changed':
      drivers/cdrom/viocd.c:176: error: dereferencing pointer to incomplete type
      ...
      Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
      Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
      05dc7b61
    • Kazuhisa Ichikawa's avatar
      block: fix the bio_vec array index out-of-bounds test · af498d7f
      Kazuhisa Ichikawa authored
      Current bio_vec array index out-of-bounds test within
      __end_that_request_first() does not seem correct.
      It checks bio->bi_idx against bio->bi_vcnt, but the subsequent code
      uses idx (which is, bio->bi_idx + next_idx) as the array index into
      bio_vec array. This means that the test really make sense only at
      the first iteration of !(nr_bytes >=bio->bi_size) case (when next_idx
      == zero). Fix this by replacing bio->bi_idx with idx.
      (This patch applies to 2.6.30-rc4.)
      Signed-off-by: default avatarKazuhisa Ichikawa <ki@epsilou.com>
      Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
      af498d7f
  2. 10 May, 2009 12 commits
  3. 09 May, 2009 26 commits