From: skseofh@xxxxxxxxx Reply-To: Subject: In-Reply-To: CAL_JsqKNGjKq3vcUPFiPa9JNq-8=oP=uBSD=tyKaPMH3cvAkww@xxxxxxxxxxxxxx >> >> From: Daero Lee <skseofh@xxxxxxxxx> >> >> After page aligning, the size may become zero. So I added exception >> handling code for size 0. > >That may be true, but when would anyone only have memory regions of >less than 2 pages. In any case memblock_add will just do nothing. What >is the actual problem you are having? I modified the patch to clear this. Please check.