staging: Fix bdops->check_events() misconversion in cyasblkdev_block.c
authorTejun Heo <tj@kernel.org>
Sat, 26 Mar 2011 18:52:59 +0000 (19:52 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 26 Mar 2011 18:52:59 +0000 (19:52 +0100)
commit0b58b4e3e711aed17aa26fafd01be137f6a1ab2e
tree296d4eb5548a8f7a1844a66467d346e64869d36d
parent9ced0b95b3993660e7990cf6bf68c1a80f31544e
staging: Fix bdops->check_events() misconversion in cyasblkdev_block.c

Commit cafb0bfca1 (staging: Convert to bdops->check_events())
incorrectly set bd->user_disk_0->events while initializing
bd->user_disk_1.  Fix it.

The problem was spotted by Milton's suspect code pattern detector.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/staging/westbridge/astoria/block/cyasblkdev_block.c