projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scsi_debug: Implement WRITE BUFFER command
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
firmware
/
memmap.c
diff --git
a/drivers/firmware/memmap.c
b/drivers/firmware/memmap.c
index 79f18e6d9c4f346e5f04430a67cf7b1cb7dbd97c..cc016c615c19ab50d0818330423c75313c17c8b5 100644
(file)
--- a/
drivers/firmware/memmap.c
+++ b/
drivers/firmware/memmap.c
@@
-184,6
+184,9
@@
static int add_sysfs_fw_map_entry(struct firmware_map_entry *entry)
static int map_entries_nr;
static struct kset *mmap_kset;
+ if (entry->kobj.state_in_sysfs)
+ return -EEXIST;
+
if (!mmap_kset) {
mmap_kset = kset_create_and_add("memmap", NULL, firmware_kobj);
if (!mmap_kset)