9
0
Fork 0

ata sff: set device pointer in ata port

This was forgotten in the last ata updates and leads to NULL
pointer dereferences.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-12-13 18:48:18 +01:00
parent 752e56babf
commit f3468dc387
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ int ide_port_register(struct device_d *dev, struct ata_ioports *io)
ide->io = io;
ide->port.ops = &ide_ops;
ide->port.dev = dev;
ret = ata_port_register(&ide->port);