# Re: \[PATCH\] \[POWERPC\] Fix viodasd driver with scatterlist debug

- From: Stephen Rothwell \<hidden\>
- Date: 2008-03-12 06:45:29 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2008/03/9436785
- Thread: https://ratatoskr.run/linuxppc-dev/2008/03/9436784/t.md

```text
Hi Ben,

On Wed, 12 Mar 2008 17:23:56 +1100 Benjamin Herrenschmidt [ref] wrote:
>
> 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.

Presumably this is also needed in 2.6.24.xx

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
```

## Attachments

- [(unnamed)](https://ratatoskr.run/linuxppc-dev/2008/03/9436785/attachment/0) (application/pgp-signature, 189 bytes)
