[ltp] DMA hotswap 0.2.0

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Wed, 22 Feb 2006 16:22:43 -0300


On Wed, 22 Feb 2006, mario wrote:
> needed to make some adjustments. Basically i didn't have
> PCI_DEVICE_ID_REVOLUTION and kzalloc. I changed the script because it

...

> -      lh = (struct lths_handler *)kzalloc(sizeof(struct lths_handler),
> GFP_KERNEL);
> +      lh = (struct lths_handler *)kcalloc(1, sizeof(struct lths_handler),
> GFP_KERNEL);

This is not the same.  See http://lwn.net/Articles/147014/

If the driver requires the zeros, that might well be the reason for some of
the problems you got.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh