Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Pull driver core fix from Greg KH:
"Here is one kernfs fix for a reported issue for 3.19-rc5.

It has been in linux-next for a while"

* tag 'driver-core-3.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
kernfs: Fix kernfs_name_compare

+8 -4
+8 -4
fs/kernfs/dir.c
··· 201 201 static int kernfs_name_compare(unsigned int hash, const char *name, 202 202 const void *ns, const struct kernfs_node *kn) 203 203 { 204 - if (hash != kn->hash) 205 - return hash - kn->hash; 206 - if (ns != kn->ns) 207 - return ns - kn->ns; 204 + if (hash < kn->hash) 205 + return -1; 206 + if (hash > kn->hash) 207 + return 1; 208 + if (ns < kn->ns) 209 + return -1; 210 + if (ns > kn->ns) 211 + return 1; 208 212 return strcmp(name, kn->name); 209 213 } 210 214