projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9a3260
)
Fix possible access to undefined memory region.
author
Igor Mammedov
<niallain@gmail.com>
Tue, 20 May 2008 09:02:01 +0000
(13:02 +0400)
committer
Steve French
<sfrench@us.ibm.com>
Wed, 21 May 2008 03:49:00 +0000
(
03:49
+0000)
Signed-off-by: Igor Mammedov <niallain@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/dns_resolve.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/dns_resolve.c
b/fs/cifs/dns_resolve.c
index 939e256f84975995341da88b38e2c60201e2aaa5..f730ef35499e4d93f73aade10da408bcb9053716 100644
(file)
--- a/
fs/cifs/dns_resolve.c
+++ b/
fs/cifs/dns_resolve.c
@@
-134,10
+134,6
@@
dns_resolve_server_name_to_ip(const char *unc, char **ip_addr)
rkey = request_key(&key_type_dns_resolver, name, "");
if (!IS_ERR(rkey)) {
data = rkey->payload.data;
- cFYI(1, ("%s: resolved: %s to %s", __func__,
- rkey->description,
- *ip_addr
- ));
} else {
cERROR(1, ("%s: unable to resolve: %s", __func__, name));
goto out;
@@
-150,6
+146,11
@@
skip_upcall:
if (*ip_addr) {
memcpy(*ip_addr, data, len);
(*ip_addr)[len] = '\0';
+ if (!IS_ERR(rkey))
+ cFYI(1, ("%s: resolved: %s to %s", __func__,
+ name,
+ *ip_addr
+ ));
rc = 0;
} else {
rc = -ENOMEM;