Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" am: 9fcabf739b
am: 281fa200fb
Change-Id: I6b959b5d5617c3fac0b8583c7e4c64771c294c3c
This commit is contained in:
commit
ae884d6af2
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ LIBLOG_HIDDEN struct android_log_transport_read logdLoggerRead = {
|
||||||
|
|
||||||
static int logdAvailable(log_id_t logId)
|
static int logdAvailable(log_id_t logId)
|
||||||
{
|
{
|
||||||
if (logId > LOG_ID_KERNEL) {
|
if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (logId == LOG_ID_SECURITY) {
|
if (logId == LOG_ID_SECURITY) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue