From 05dc4f418928541bdb2385287cd89ac794a31b36 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 17 Jan 2018 19:32:06 +0100 Subject: [PATCH] The National Semiconductors PC87306 Super I/O chip now correctly assigns the pointer returned by the FDC device_add call to pc87306_fdc, fixes the segmentation fault. --- src/sio_pc87306.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sio_pc87306.c b/src/sio_pc87306.c index b99be40fd..9dfe881b1 100644 --- a/src/sio_pc87306.c +++ b/src/sio_pc87306.c @@ -8,7 +8,7 @@ * * Emulation of the NatSemi PC87306 Super I/O chip. * - * Version: @(#)sio_pc87306.c 1.0.8 2018/01/16 + * Version: @(#)sio_pc87306.c 1.0.9 2018/01/17 * * Author: Miran Grca, * Copyright 2016-2018 Miran Grca. @@ -469,7 +469,7 @@ void pc87306_reset(void) void pc87306_init() { - device_add(&fdc_at_nsc_device); + pc87306_fdc = device_add(&fdc_at_nsc_device); lpt2_remove();