History

Merge tag 'driver-core-4.11-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core

Pull driver core fix from Greg KH: "Here is a single kernfs fix for 4.11-rc4 that resolves a reported issue. It has been in linux-next with no reported issues" * tag 'driver-core-4.11-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: kernfs: Check KERNFS_HAS_RELEASE before calling kernfs_release_file()

Linus Torvalds committed 9 years ago

Commit 9e54ef92 parents f1638fc 966fa721 file · +2 −1Browse files

Unified · Split

fs/kernfs/file.c+2−1
@@ -809,7 +809,8 @@ void kernfs_drain_open_files(struct kernfs_node *kn) · 808 unmodified lines
809809 if (kn->flags & KERNFS_HAS_MMAP)
810810 unmap_mapping_range(inode->i_mapping, 0, 0, 1);
811811
812− kernfs_release_file(kn, of);
812+ if (kn->flags & KERNFS_HAS_RELEASE)
813+ kernfs_release_file(kn, of);
813814 }
814815
815816 mutex_unlock(&kernfs_open_file_mutex);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t