Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188848
b: refs/heads/master
c: e919241
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Mar 22, 2010
1 parent 309ba31 commit 2804937
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b89d2f9ace1970324facc68ca9b8fae19ce8096
refs/heads/master: e91924158d89086357e46887c23d714cfb4e05ea
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/cpu/perf_event_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,12 @@ static void amd_pmu_cpu_offline(int cpu)

raw_spin_lock(&amd_nb_lock);

if (--cpuhw->amd_nb->refcnt == 0)
kfree(cpuhw->amd_nb);
if (cpuhw->amd_nb) {
if (--cpuhw->amd_nb->refcnt == 0)
kfree(cpuhw->amd_nb);

cpuhw->amd_nb = NULL;
cpuhw->amd_nb = NULL;
}

raw_spin_unlock(&amd_nb_lock);
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/fs/afs/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ void afs_cache_permit(struct afs_vnode *vnode, struct key *key, long acl_order)
if (!permits)
goto out_unlock;

memcpy(permits->permits, xpermits->permits,
count * sizeof(struct afs_permit));
if (xpermits)
memcpy(permits->permits, xpermits->permits,
count * sizeof(struct afs_permit));

_debug("key %x access %x",
key_serial(key), vnode->status.caller_access);
Expand Down
2 changes: 1 addition & 1 deletion trunk/ipc/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/syscalls.h>
#include <linux/uaccess.h>

SYSCALL_DEFINE6(ipc, unsigned int, call, int, first, int, second,
SYSCALL_DEFINE6(ipc, unsigned int, call, int, first, unsigned long, second,
unsigned long, third, void __user *, ptr, long, fifth)
{
int version, ret;
Expand Down
6 changes: 6 additions & 0 deletions trunk/net/rxrpc/ar-accept.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ static int rxrpc_accept_incoming_call(struct rxrpc_local *local,

/* get a notification message to send to the server app */
notification = alloc_skb(0, GFP_NOFS);
if (!notification) {
_debug("no memory");
ret = -ENOMEM;
goto error_nofree;
}
rxrpc_new_skb(notification);
notification->mark = RXRPC_SKB_MARK_NEW_CALL;

Expand Down Expand Up @@ -189,6 +194,7 @@ static int rxrpc_accept_incoming_call(struct rxrpc_local *local,
ret = -ECONNREFUSED;
error:
rxrpc_free_skb(notification);
error_nofree:
_leave(" = %d", ret);
return ret;
}
Expand Down

0 comments on commit 2804937

Please sign in to comment.