iommu/shmobile: Allocate archdata with kzalloc()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 17 Dec 2013 17:18:49 +0000 (18:18 +0100)
committerJoerg Roedel <joro@8bytes.org>
Tue, 7 Jan 2014 14:35:25 +0000 (15:35 +0100)
The archdata attached_list field isn't initialized, leading to random
crashes when accessed. Use kzalloc() to allocate the whole structure and
make sure all fields get initialized properly.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/shmobile-iommu.c

Simple merge