projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577ba40
)
rar: Fix off by one error
author
Ossama Othman
<
[email protected]
>
Tue, 24 Aug 2010 11:55:14 +0000
(12:55 +0100)
committer
Linus Torvalds
<
[email protected]
>
Tue, 24 Aug 2010 17:42:08 +0000
(10:42 -0700)
It looks like there is an off-by-one error in one of your changes to
drivers/staging/rar_register/rar_register.c:
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/platform/x86/intel_rar_register.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_rar_register.c
b/drivers/platform/x86/intel_rar_register.c
index 73f8e6d726694ad918ba89fa6da7e5507885a2a7..2b11a33325e6a93bf872e67e7d1ab549b98ccc9c 100644
(file)
--- a/
drivers/platform/x86/intel_rar_register.c
+++ b/
drivers/platform/x86/intel_rar_register.c
@@
-145,7
+145,7
@@
static void free_rar_device(struct rar_device *rar)
*/
static struct rar_device *_rar_to_device(int rar, int *off)
{
- if (rar >= 0 && rar <
= 3
) {
+ if (rar >= 0 && rar <
MRST_NUM_RAR
) {
*off = rar;
return &my_rar_device;
}