sm501fb: check fb_alloc_cmap return value and handle failure properly