projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rockchip: iommu: update iommu driver
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
macintosh
/
nvram.c
diff --git
a/drivers/macintosh/nvram.c
b/drivers/macintosh/nvram.c
index a271c8218d82b00c3311c3c77d26f135ce5791ec..f0e03e7937e31483540d1a910dd250eb14368dc2 100644
(file)
--- a/
drivers/macintosh/nvram.c
+++ b/
drivers/macintosh/nvram.c
@@
-21,12
+21,16
@@
static loff_t nvram_llseek(struct file *file, loff_t offset, int origin)
{
switch (origin) {
static loff_t nvram_llseek(struct file *file, loff_t offset, int origin)
{
switch (origin) {
+ case 0:
+ break;
case 1:
offset += file->f_pos;
break;
case 2:
offset += NVRAM_SIZE;
break;
case 1:
offset += file->f_pos;
break;
case 2:
offset += NVRAM_SIZE;
break;
+ default:
+ offset = -1;
}
if (offset < 0)
return -EINVAL;
}
if (offset < 0)
return -EINVAL;