projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'defconfig-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git]
/
drivers
/
block
/
sx8.c
diff --git
a/drivers/block/sx8.c
b/drivers/block/sx8.c
index
7b54353
..
420cd95
100644
(file)
--- a/
drivers/block/sx8.c
+++ b/
drivers/block/sx8.c
@@
-1373,7
+1373,7
@@
static void carm_free_disk(struct carm_host *host, unsigned int port_no)
if (!disk)
return;
- if (
disk->flags & GENHD_FL_UP
)
+ if (
host->state > HST_DEV_ACTIVATE
)
del_gendisk(disk);
blk_cleanup_disk(disk);
}