Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41110
b: refs/heads/master
c: 177b292
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Nov 28, 2006
1 parent 5837d47 commit e9407ed
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 16 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: 4195bdbea42151c04485b0d131eed6dd97309cee
refs/heads/master: 177b2927e2eea73c598a218680b4dc9043c51dcb
2 changes: 1 addition & 1 deletion trunk/arch/mips/mips-boards/malta/malta_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void __init plat_mem_setup(void)
BONITO_PCIMEMBASECFG |=
(BONITO_PCIMEMBASECFG_MEMBASE0_CACHED |
BONITO_PCIMEMBASECFG_MEMBASE1_CACHED);
printk("Disabled Bonito IOBC coherency\n");
printk("Enabled Bonito IOBC coherency\n");
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int __init setup_early_printk(char *buf)
return 0;
early_console_initialized = 1;

if (strstr(buf, "keep"))
if (!strcmp(buf,"keep"))
keep_early = 1;

if (!strncmp(buf, "serial", 6)) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mtd/chips/cfi_cmdset_0001.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ static int inval_cache_and_wait_for_operation(
}
spin_lock(chip->mutex);

while (chip->state != chip_state) {
if (chip->state != chip_state) {
/* Someone's suspended the operation: sleep */
DECLARE_WAITQUEUE(wait, current);
set_current_state(TASK_UNINTERRUPTIBLE);
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/ecryptfs/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,7 @@ int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat)
crypt_stat->tfm = crypto_alloc_blkcipher(full_alg_name, 0,
CRYPTO_ALG_ASYNC);
kfree(full_alg_name);
if (IS_ERR(crypt_stat->tfm)) {
rc = PTR_ERR(crypt_stat->tfm);
if (!crypt_stat->tfm) {
ecryptfs_printk(KERN_ERR, "cryptfs: init_crypt_ctx(): "
"Error initializing cipher [%s]\n",
crypt_stat->cipher);
Expand Down
1 change: 0 additions & 1 deletion trunk/include/scsi/libsas.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <scsi/scsi_device.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_transport_sas.h>
#include <asm/scatterlist.h>

struct block_device;

Expand Down
8 changes: 4 additions & 4 deletions trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,14 @@ int call_usermodehelper_pipe(char *path, char **argv, char **envp,
return 0;

f = create_write_pipe();
if (IS_ERR(f))
return PTR_ERR(f);
if (!f)
return -ENOMEM;
*filp = f;

f = create_read_pipe(f);
if (IS_ERR(f)) {
if (!f) {
free_write_pipe(*filp);
return PTR_ERR(f);
return -ENOMEM;
}
sub_info.stdin = f;

Expand Down
9 changes: 4 additions & 5 deletions trunk/net/bridge/br_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ static int get_fdb_entries(struct net_bridge *br, void __user *userbuf,
{
int num;
void *buf;
size_t size;
size_t size = maxnum * sizeof(struct __fdb_entry);

/* Clamp size to PAGE_SIZE, test maxnum to avoid overflow */
if (maxnum > PAGE_SIZE/sizeof(struct __fdb_entry))
if (size > PAGE_SIZE) {
size = PAGE_SIZE;
maxnum = PAGE_SIZE/sizeof(struct __fdb_entry);

size = maxnum * sizeof(struct __fdb_entry);
}

buf = kmalloc(size, GFP_USER);
if (!buf)
Expand Down

0 comments on commit e9407ed

Please sign in to comment.