{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/18","id":32573552,"html_url":"https://github.com/96boards/arm-trusted-firmware/pull/18","diff_url":"https://github.com/96boards/arm-trusted-firmware/pull/18.diff","patch_url":"https://github.com/96boards/arm-trusted-firmware/pull/18.patch","issue_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues/18","number":18,"state":"open","locked":false,"title":"hikey: fix the error handling for wrong partition","user":{"login":"hzhuang1","id":534660,"avatar_url":"https://avatars.githubusercontent.com/u/534660?v=3","gravatar_id":"","url":"https://api.github.com/users/hzhuang1","html_url":"https://github.com/hzhuang1","followers_url":"https://api.github.com/users/hzhuang1/followers","following_url":"https://api.github.com/users/hzhuang1/following{/other_user}","gists_url":"https://api.github.com/users/hzhuang1/gists{/gist_id}","starred_url":"https://api.github.com/users/hzhuang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzhuang1/subscriptions","organizations_url":"https://api.github.com/users/hzhuang1/orgs","repos_url":"https://api.github.com/users/hzhuang1/repos","events_url":"https://api.github.com/users/hzhuang1/events{/privacy}","received_events_url":"https://api.github.com/users/hzhuang1/received_events","type":"User","site_admin":false},"body":"If the wrong partition is got, especially for the new board, current\r\ncode just exit without closing file handler on storage device. So\r\nappend the missing close operation if there's a failure on accessing\r\npartition table.\r\n\r\nSigned-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>","created_at":"2015-04-03T07:03:23Z","updated_at":"2015-04-03T07:03:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/18/commits","review_comments_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/18/comments","review_comment_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues/18/comments","statuses_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/statuses/1e9b79053eabd31a4a93fa263028c168ab960a77","head":{"label":"hzhuang1:fix_partition","ref":"fix_partition","sha":"1e9b79053eabd31a4a93fa263028c168ab960a77","user":{"login":"hzhuang1","id":534660,"avatar_url":"https://avatars.githubusercontent.com/u/534660?v=3","gravatar_id":"","url":"https://api.github.com/users/hzhuang1","html_url":"https://github.com/hzhuang1","followers_url":"https://api.github.com/users/hzhuang1/followers","following_url":"https://api.github.com/users/hzhuang1/following{/other_user}","gists_url":"https://api.github.com/users/hzhuang1/gists{/gist_id}","starred_url":"https://api.github.com/users/hzhuang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzhuang1/subscriptions","organizations_url":"https://api.github.com/users/hzhuang1/orgs","repos_url":"https://api.github.com/users/hzhuang1/repos","events_url":"https://api.github.com/users/hzhuang1/events{/privacy}","received_events_url":"https://api.github.com/users/hzhuang1/received_events","type":"User","site_admin":false},"repo":{"id":31355069,"name":"arm-trusted-firmware","full_name":"hzhuang1/arm-trusted-firmware","owner":{"login":"hzhuang1","id":534660,"avatar_url":"https://avatars.githubusercontent.com/u/534660?v=3","gravatar_id":"","url":"https://api.github.com/users/hzhuang1","html_url":"https://github.com/hzhuang1","followers_url":"https://api.github.com/users/hzhuang1/followers","following_url":"https://api.github.com/users/hzhuang1/following{/other_user}","gists_url":"https://api.github.com/users/hzhuang1/gists{/gist_id}","starred_url":"https://api.github.com/users/hzhuang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzhuang1/subscriptions","organizations_url":"https://api.github.com/users/hzhuang1/orgs","repos_url":"https://api.github.com/users/hzhuang1/repos","events_url":"https://api.github.com/users/hzhuang1/events{/privacy}","received_events_url":"https://api.github.com/users/hzhuang1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hzhuang1/arm-trusted-firmware","description":"ARM Trusted Firmware","fork":true,"url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware","forks_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/forks","keys_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/teams","hooks_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/hooks","issue_events_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/issues/events{/number}","events_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/events","assignees_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/assignees{/user}","branches_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/branches{/branch}","tags_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/tags","blobs_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/languages","stargazers_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/stargazers","contributors_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/contributors","subscribers_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/subscribers","subscription_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/subscription","commits_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/contents/{+path}","compare_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/merges","archive_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/downloads","issues_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/issues{/number}","pulls_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/labels{/name}","releases_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/releases{/id}","created_at":"2015-02-26T07:13:38Z","updated_at":"2015-02-26T07:13:40Z","pushed_at":"2015-04-03T07:03:04Z","git_url":"git://github.com/hzhuang1/arm-trusted-firmware.git","ssh_url":"git@github.com:hzhuang1/arm-trusted-firmware.git","clone_url":"https://github.com/hzhuang1/arm-trusted-firmware.git","svn_url":"https://github.com/hzhuang1/arm-trusted-firmware","homepage":null,"size":3639,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"hikey"}},"base":{"label":"96boards:hikey","ref":"hikey","sha":"5ec9e51bc6ca0ae8a2f6ec0232a2c421b3615599","user":{"login":"96boards","id":10862183,"avatar_url":"https://avatars.githubusercontent.com/u/10862183?v=3","gravatar_id":"","url":"https://api.github.com/users/96boards","html_url":"https://github.com/96boards","followers_url":"https://api.github.com/users/96boards/followers","following_url":"https://api.github.com/users/96boards/following{/other_user}","gists_url":"https://api.github.com/users/96boards/gists{/gist_id}","starred_url":"https://api.github.com/users/96boards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/96boards/subscriptions","organizations_url":"https://api.github.com/users/96boards/orgs","repos_url":"https://api.github.com/users/96boards/repos","events_url":"https://api.github.com/users/96boards/events{/privacy}","received_events_url":"https://api.github.com/users/96boards/received_events","type":"Organization","site_admin":false},"repo":{"id":30957485,"name":"arm-trusted-firmware","full_name":"96boards/arm-trusted-firmware","owner":{"login":"96boards","id":10862183,"avatar_url":"https://avatars.githubusercontent.com/u/10862183?v=3","gravatar_id":"","url":"https://api.github.com/users/96boards","html_url":"https://github.com/96boards","followers_url":"https://api.github.com/users/96boards/followers","following_url":"https://api.github.com/users/96boards/following{/other_user}","gists_url":"https://api.github.com/users/96boards/gists{/gist_id}","starred_url":"https://api.github.com/users/96boards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/96boards/subscriptions","organizations_url":"https://api.github.com/users/96boards/orgs","repos_url":"https://api.github.com/users/96boards/repos","events_url":"https://api.github.com/users/96boards/events{/privacy}","received_events_url":"https://api.github.com/users/96boards/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/96boards/arm-trusted-firmware","description":"ARM Trusted Firmware","fork":true,"url":"https://api.github.com/repos/96boards/arm-trusted-firmware","forks_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/forks","keys_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/teams","hooks_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/hooks","issue_events_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues/events{/number}","events_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/events","assignees_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/assignees{/user}","branches_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/branches{/branch}","tags_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/tags","blobs_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/languages","stargazers_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/stargazers","contributors_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/contributors","subscribers_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/subscribers","subscription_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/subscription","commits_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/contents/{+path}","compare_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/merges","archive_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/downloads","issues_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues{/number}","pulls_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/labels{/name}","releases_url":"https://api.github.com/repos/96boards/arm-trusted-firmware/releases{/id}","created_at":"2015-02-18T08:23:36Z","updated_at":"2015-04-03T01:58:57Z","pushed_at":"2015-04-03T01:58:57Z","git_url":"git://github.com/96boards/arm-trusted-firmware.git","ssh_url":"git@github.com:96boards/arm-trusted-firmware.git","clone_url":"https://github.com/96boards/arm-trusted-firmware.git","svn_url":"https://github.com/96boards/arm-trusted-firmware","homepage":null,"size":4012,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":1,"default_branch":"hikey"}},"_links":{"self":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/18"},"html":{"href":"https://github.com/96boards/arm-trusted-firmware/pull/18"},"issue":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues/18"},"comments":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/96boards/arm-trusted-firmware/statuses/1e9b79053eabd31a4a93fa263028c168ab960a77"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}