[PATCH 1/2] scripts/sortextable: make close happens only if file is opened

2016-08-10 Thread Maninder Singh
1. Currently code is doing close even if it is failed to open, which is wrong so fixing the same. 2. if file open is failed just return from there, no need of next operations. 3. Use mmap address only after validation. Issue is reported by static checker tool. Reported-by: Ajeet Yadav

[PATCH 1/2] scripts/sortextable: make close happens only if file is opened

2016-08-10 Thread Maninder Singh
1. Currently code is doing close even if it is failed to open, which is wrong so fixing the same. 2. if file open is failed just return from there, no need of next operations. 3. Use mmap address only after validation. Issue is reported by static checker tool. Reported-by: Ajeet Yadav