Merge tag 'driver-core-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core updates from Greg KH: "Here is the set of driver core / debugfs patches for 4.15-rc1. Not many here, mostly all are debugfs fixes to resolve some long-reported problems with files going away with references to them in userspace. There's also some SPDX cleanups for the debugfs code, as well as a few other minor driver core changes for issues reported by people. All of these have been in linux-next for a week or more with no reported issues" * tag 'driver-core-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: driver core: Fix device link deferred probe debugfs: Remove redundant license text debugfs: add SPDX identifiers to all debugfs files debugfs: defer debugfs_fsdata allocation to first usage debugfs: call debugfs_real_fops() only after debugfs_file_get() debugfs: purge obsolete SRCU based removal protection IB/hfi1: convert to debugfs_file_get() and -put() debugfs: convert to debugfs_file_get() and -put() debugfs: debugfs_real_fops(): drop __must_hold sparse annotation debugfs: implement per-file removal protection debugfs: add support for more elaborate ->d_fsdata driver core: Move device_links_purge() after bus_remove_device() arch_topology: Fix section miss match warning due to free_raw_capacity() driver-core: pr_err() strings should end with newlines
Dieser Commit ist enthalten in:
@@ -71,13 +71,13 @@ static ssize_t hfi1_seq_read(
|
||||
loff_t *ppos)
|
||||
{
|
||||
struct dentry *d = file->f_path.dentry;
|
||||
int srcu_idx;
|
||||
ssize_t r;
|
||||
|
||||
r = debugfs_use_file_start(d, &srcu_idx);
|
||||
if (likely(!r))
|
||||
r = seq_read(file, buf, size, ppos);
|
||||
debugfs_use_file_finish(srcu_idx);
|
||||
r = debugfs_file_get(d);
|
||||
if (unlikely(r))
|
||||
return r;
|
||||
r = seq_read(file, buf, size, ppos);
|
||||
debugfs_file_put(d);
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -87,13 +87,13 @@ static loff_t hfi1_seq_lseek(
|
||||
int whence)
|
||||
{
|
||||
struct dentry *d = file->f_path.dentry;
|
||||
int srcu_idx;
|
||||
loff_t r;
|
||||
|
||||
r = debugfs_use_file_start(d, &srcu_idx);
|
||||
if (likely(!r))
|
||||
r = seq_lseek(file, offset, whence);
|
||||
debugfs_use_file_finish(srcu_idx);
|
||||
r = debugfs_file_get(d);
|
||||
if (unlikely(r))
|
||||
return r;
|
||||
r = seq_lseek(file, offset, whence);
|
||||
debugfs_file_put(d);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren