HDA Intel driver
Fixed Oops in the error path from probe function of snd-hda-intel driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
 
        /* flags */
        int position_fix;
+       unsigned int initialized: 1;
 };
 
 /*
  */
 static int azx_free(azx_t *chip)
 {
-       if (chip->remap_addr) {
+       if (chip->initialized) {
                int i;
 
                for (i = 0; i < MAX_ICH6_DEV; i++)
        /* initialize chip */
        azx_init_chip(chip);
 
+       chip->initialized = 1;
+
        /* codec detection */
        if (! chip->codec_mask) {
                snd_printk(KERN_ERR SFX "no codecs found!\n");