]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix viodasd driver with scatterlist debug
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 12 Mar 2008 06:23:56 +0000 (17:23 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 12 Mar 2008 23:09:28 +0000 (10:09 +1100)
commit25c0a7b83297f10186a7a1ee5c563f005dfabc44
tree717a3d23d732ca7570b4bbef3540ffeabe35bdee
parent98cddbfb3218925c35697562f7d9df692bf6a436
[POWERPC] Fix viodasd driver with scatterlist debug

The iSeries viodasd drivers does some very strange things with
scatterlists, one of these causing a BUG_ON to trigger when
scatterlist debugging is enabled due to initializing the
scatterlist with memset instead of sg_init_table().

This fixes it by using sg_init_table().  The rest of the stuff
it does to that poor list is still pretty awful but it will work.

I may look into fixing things in a nicer way some other time.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/block/viodasd.c