]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: address of the simple file system protocol
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 19 Jan 2018 19:24:38 +0000 (20:24 +0100)
committerAlexander Graf <agraf@suse.de>
Mon, 22 Jan 2018 22:09:13 +0000 (23:09 +0100)
When installing the the simple file system protocol we have to path
the address of the structure and not the address of a pointer to the
structure.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_disk.c

index d299fc8dea5b0a0b104207b227ca12591b961659..85b4a147e27d75e5fba405c1dfbc1b15839042bd 100644 (file)
@@ -242,7 +242,7 @@ static void efi_disk_add_dev(const char *name,
                                                         diskobj->dp);
                ret = efi_add_protocol(diskobj->parent.handle,
                                       &efi_simple_file_system_protocol_guid,
-                                      &diskobj->volume);
+                                      diskobj->volume);
                if (ret != EFI_SUCCESS)
                        goto out_of_memory;
        }