Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19037
b: refs/heads/master
c: 4415863
h: refs/heads/master
i:
  19035: bcc2b10
v: v3
  • Loading branch information
David S. Miller committed Jan 22, 2006
1 parent c1e41e0 commit 8e7ac38
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 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: 951069e311a2a931bf7c9d838db860f90bf14c45
refs/heads/master: 4415863773eb0eeceba7318238ec0f63b0b5847a
2 changes: 1 addition & 1 deletion trunk/arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#define curptr g6

#define NR_SYSCALLS 284 /* Each OS is different... */
#define NR_SYSCALLS 299 /* Each OS is different... */

/* These are just handy. */
#define _SV save %sp, -STACKFRAME_SZ, %sp
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#define curptr g6

#define NR_SYSCALLS 284 /* Each OS is different... */
#define NR_SYSCALLS 299 /* Each OS is different... */

.text
.align 32
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
static int firsttime = 1;
int error = 0;

if (tv && !timespec_valid(tv))
if (!timespec_valid(tv))
return -EINVAL;

error = security_settime(tv, tz);
Expand Down
4 changes: 2 additions & 2 deletions trunk/security/seclvl.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ static int seclvl_capable(struct task_struct *tsk, int cap)
*/
static int seclvl_settime(struct timespec *tv, struct timezone *tz)
{
if (tv && seclvl > 1) {
struct timespec now;
struct timespec now;
if (seclvl > 1) {
now = current_kernel_time();
if (tv->tv_sec < now.tv_sec ||
(tv->tv_sec == now.tv_sec && tv->tv_nsec < now.tv_nsec)) {
Expand Down

0 comments on commit 8e7ac38

Please sign in to comment.