You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: klist.c: bit 0 in pointer can't be used as flag debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n sysfs: fix problems with binary files PNP: fix broken pnp lowercasing for acpi module aliases driver core: Convert '/' to '!' in dev_set_name()
This commit is contained in:
@@ -63,6 +63,9 @@ read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off)
|
||||
int count = min_t(size_t, bytes, PAGE_SIZE);
|
||||
char *temp;
|
||||
|
||||
if (!bytes)
|
||||
return 0;
|
||||
|
||||
if (size) {
|
||||
if (offs > size)
|
||||
return 0;
|
||||
@@ -131,6 +134,9 @@ static ssize_t write(struct file *file, const char __user *userbuf,
|
||||
int count = min_t(size_t, bytes, PAGE_SIZE);
|
||||
char *temp;
|
||||
|
||||
if (!bytes)
|
||||
return 0;
|
||||
|
||||
if (size) {
|
||||
if (offs > size)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user