Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" am: 9fcabf739b am: 281fa200fb
am: ae884d6af2
Change-Id: I6c7a2be0da156cede075f35209033980f7deeda0
This commit is contained in:
commit
ea67d8d449
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)
|
||||
{
|
||||
if (logId > LOG_ID_KERNEL) {
|
||||
if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) {
|
||||
return -EINVAL;
|
||||
}
|
||||
if (logId == LOG_ID_SECURITY) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue