projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[CIFS] Fix buffer overflow if server sends corrupt response to small
[powerpc.git]
/
fs
/
cifs
/
dir.c
diff --git
a/fs/cifs/dir.c
b/fs/cifs/dir.c
index
793404b
..
37dc97a
100644
(file)
--- a/
fs/cifs/dir.c
+++ b/
fs/cifs/dir.c
@@
-593,7
+593,7
@@
static int cifs_ci_compare(struct dentry *dentry, struct qstr *a,
* case take precedence. If a is not a negative dentry, this
* should have no side effects
*/
- memcpy(
(unsigned char *)
a->name, b->name, a->len);
+ memcpy(a->name, b->name, a->len);
return 0;
}
return 1;