Skip to content

Commit

Permalink
OS-3571 lxbrand fix clock_gettime03 LTP test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin committed Nov 19, 2014
1 parent 9df4635 commit 140d337
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/src/lib/brand/lx/lx_brand/common/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ lx_clock_gettime(int clock, struct timespec *tp)
if (clock < 0 || clock > LX_CLOCK_MAX)
return (-EINVAL);

if (tp == NULL)
return (-EFAULT);

if (clock_gettime(ltos_clock[clock], &ts) < 0)
return (-errno);

Expand Down

0 comments on commit 140d337

Please sign in to comment.